PageRenderTime 60ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/CodeCamp/CodeCamp/Controllers/CodeCampData01.designer.cs

https://bitbucket.org/dsargent/codecamp
C# | 3641 lines | 3236 code | 396 blank | 9 comment | 348 complexity | 4a82dbb8369d9adfab31049520c06467 MD5 | raw file
  1. #pragma warning disable 1591
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // This code was generated by a tool.
  5. // Runtime Version:4.0.30319.1
  6. //
  7. // Changes to this file may cause incorrect behavior and will be lost if
  8. // the code is regenerated.
  9. // </auto-generated>
  10. //------------------------------------------------------------------------------
  11. namespace CodeCamp.Controllers
  12. {
  13. using System.Data.Linq;
  14. using System.Data.Linq.Mapping;
  15. using System.Data;
  16. using System.Collections.Generic;
  17. using System.Reflection;
  18. using System.Linq;
  19. using System.Linq.Expressions;
  20. [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="SQL2008_499609_pdxcodecamp")]
  21. public partial class CodeCampData01DataContext : System.Data.Linq.DataContext
  22. {
  23. private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
  24. #region Extensibility Method Definitions
  25. partial void OnCreated();
  26. partial void InsertPresenter(CodeCamp.Entities01.Presenter instance);
  27. partial void UpdatePresenter(CodeCamp.Entities01.Presenter instance);
  28. partial void DeletePresenter(CodeCamp.Entities01.Presenter instance);
  29. partial void InsertSessionPresenter(CodeCamp.Entities01.SessionPresenter instance);
  30. partial void UpdateSessionPresenter(CodeCamp.Entities01.SessionPresenter instance);
  31. partial void DeleteSessionPresenter(CodeCamp.Entities01.SessionPresenter instance);
  32. partial void InsertSession(CodeCamp.Entities01.Session instance);
  33. partial void UpdateSession(CodeCamp.Entities01.Session instance);
  34. partial void DeleteSession(CodeCamp.Entities01.Session instance);
  35. partial void InsertEvent(CodeCamp.Entities01.Event instance);
  36. partial void UpdateEvent(CodeCamp.Entities01.Event instance);
  37. partial void DeleteEvent(CodeCamp.Entities01.Event instance);
  38. partial void InsertCurrentVersion(CodeCamp.Entities01.CurrentVersion instance);
  39. partial void UpdateCurrentVersion(CodeCamp.Entities01.CurrentVersion instance);
  40. partial void DeleteCurrentVersion(CodeCamp.Entities01.CurrentVersion instance);
  41. partial void InsertSpeakerRateEvent(CodeCamp.Entities01.SpeakerRateEvent instance);
  42. partial void UpdateSpeakerRateEvent(CodeCamp.Entities01.SpeakerRateEvent instance);
  43. partial void DeleteSpeakerRateEvent(CodeCamp.Entities01.SpeakerRateEvent instance);
  44. partial void InsertSpeakerRateSpeaker(CodeCamp.Entities01.SpeakerRateSpeaker instance);
  45. partial void UpdateSpeakerRateSpeaker(CodeCamp.Entities01.SpeakerRateSpeaker instance);
  46. partial void DeleteSpeakerRateSpeaker(CodeCamp.Entities01.SpeakerRateSpeaker instance);
  47. partial void InsertSpeakerRateTalk(CodeCamp.Entities01.SpeakerRateTalk instance);
  48. partial void UpdateSpeakerRateTalk(CodeCamp.Entities01.SpeakerRateTalk instance);
  49. partial void DeleteSpeakerRateTalk(CodeCamp.Entities01.SpeakerRateTalk instance);
  50. partial void InsertCommunitySponsor(CodeCamp.Entities01.CommunitySponsor instance);
  51. partial void UpdateCommunitySponsor(CodeCamp.Entities01.CommunitySponsor instance);
  52. partial void DeleteCommunitySponsor(CodeCamp.Entities01.CommunitySponsor instance);
  53. partial void InsertIndividualContributor(CodeCamp.Entities01.IndividualContributor instance);
  54. partial void UpdateIndividualContributor(CodeCamp.Entities01.IndividualContributor instance);
  55. partial void DeleteIndividualContributor(CodeCamp.Entities01.IndividualContributor instance);
  56. partial void InsertSponsor(CodeCamp.Entities01.Sponsor instance);
  57. partial void UpdateSponsor(CodeCamp.Entities01.Sponsor instance);
  58. partial void DeleteSponsor(CodeCamp.Entities01.Sponsor instance);
  59. partial void InsertBannedTag(CodeCamp.Entities01.BannedTag instance);
  60. partial void UpdateBannedTag(CodeCamp.Entities01.BannedTag instance);
  61. partial void DeleteBannedTag(CodeCamp.Entities01.BannedTag instance);
  62. partial void InsertSessionTag(CodeCamp.Entities01.SessionTag instance);
  63. partial void UpdateSessionTag(CodeCamp.Entities01.SessionTag instance);
  64. partial void DeleteSessionTag(CodeCamp.Entities01.SessionTag instance);
  65. partial void InsertTag(CodeCamp.Entities01.Tag instance);
  66. partial void UpdateTag(CodeCamp.Entities01.Tag instance);
  67. partial void DeleteTag(CodeCamp.Entities01.Tag instance);
  68. partial void InsertTask(CodeCamp.Entities01.Task instance);
  69. partial void UpdateTask(CodeCamp.Entities01.Task instance);
  70. partial void DeleteTask(CodeCamp.Entities01.Task instance);
  71. partial void InsertTasks_Timeslot(CodeCamp.Entities01.Tasks_Timeslot instance);
  72. partial void UpdateTasks_Timeslot(CodeCamp.Entities01.Tasks_Timeslot instance);
  73. partial void DeleteTasks_Timeslot(CodeCamp.Entities01.Tasks_Timeslot instance);
  74. partial void InsertTaskTimeslot(CodeCamp.Entities01.TaskTimeslot instance);
  75. partial void UpdateTaskTimeslot(CodeCamp.Entities01.TaskTimeslot instance);
  76. partial void DeleteTaskTimeslot(CodeCamp.Entities01.TaskTimeslot instance);
  77. #endregion
  78. public CodeCampData01DataContext() :
  79. base(global::System.Configuration.ConfigurationManager.ConnectionStrings["CodeCampConnectionString"].ConnectionString, mappingSource)
  80. {
  81. OnCreated();
  82. }
  83. public CodeCampData01DataContext(string connection) :
  84. base(connection, mappingSource)
  85. {
  86. OnCreated();
  87. }
  88. public CodeCampData01DataContext(System.Data.IDbConnection connection) :
  89. base(connection, mappingSource)
  90. {
  91. OnCreated();
  92. }
  93. public CodeCampData01DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  94. base(connection, mappingSource)
  95. {
  96. OnCreated();
  97. }
  98. public CodeCampData01DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  99. base(connection, mappingSource)
  100. {
  101. OnCreated();
  102. }
  103. public System.Data.Linq.Table<CodeCamp.Entities01.Presenter> Presenters
  104. {
  105. get
  106. {
  107. return this.GetTable<CodeCamp.Entities01.Presenter>();
  108. }
  109. }
  110. public System.Data.Linq.Table<CodeCamp.Entities01.SessionPresenter> SessionPresenters
  111. {
  112. get
  113. {
  114. return this.GetTable<CodeCamp.Entities01.SessionPresenter>();
  115. }
  116. }
  117. public System.Data.Linq.Table<CodeCamp.Entities01.Session> Sessions
  118. {
  119. get
  120. {
  121. return this.GetTable<CodeCamp.Entities01.Session>();
  122. }
  123. }
  124. public System.Data.Linq.Table<CodeCamp.Entities01.Event> Events
  125. {
  126. get
  127. {
  128. return this.GetTable<CodeCamp.Entities01.Event>();
  129. }
  130. }
  131. public System.Data.Linq.Table<CodeCamp.Entities01.CurrentVersion> CurrentVersions
  132. {
  133. get
  134. {
  135. return this.GetTable<CodeCamp.Entities01.CurrentVersion>();
  136. }
  137. }
  138. public System.Data.Linq.Table<CodeCamp.Entities01.SpeakerRateEvent> SpeakerRateEvents
  139. {
  140. get
  141. {
  142. return this.GetTable<CodeCamp.Entities01.SpeakerRateEvent>();
  143. }
  144. }
  145. public System.Data.Linq.Table<CodeCamp.Entities01.SpeakerRateSpeaker> SpeakerRateSpeakers
  146. {
  147. get
  148. {
  149. return this.GetTable<CodeCamp.Entities01.SpeakerRateSpeaker>();
  150. }
  151. }
  152. public System.Data.Linq.Table<CodeCamp.Entities01.SpeakerRateTalk> SpeakerRateTalks
  153. {
  154. get
  155. {
  156. return this.GetTable<CodeCamp.Entities01.SpeakerRateTalk>();
  157. }
  158. }
  159. public System.Data.Linq.Table<CodeCamp.Entities01.CommunitySponsor> CommunitySponsors
  160. {
  161. get
  162. {
  163. return this.GetTable<CodeCamp.Entities01.CommunitySponsor>();
  164. }
  165. }
  166. public System.Data.Linq.Table<CodeCamp.Entities01.IndividualContributor> IndividualContributors
  167. {
  168. get
  169. {
  170. return this.GetTable<CodeCamp.Entities01.IndividualContributor>();
  171. }
  172. }
  173. public System.Data.Linq.Table<CodeCamp.Entities01.Sponsor> Sponsors
  174. {
  175. get
  176. {
  177. return this.GetTable<CodeCamp.Entities01.Sponsor>();
  178. }
  179. }
  180. public System.Data.Linq.Table<CodeCamp.Entities01.BannedTag> BannedTags
  181. {
  182. get
  183. {
  184. return this.GetTable<CodeCamp.Entities01.BannedTag>();
  185. }
  186. }
  187. public System.Data.Linq.Table<CodeCamp.Entities01.SessionTag> SessionTags
  188. {
  189. get
  190. {
  191. return this.GetTable<CodeCamp.Entities01.SessionTag>();
  192. }
  193. }
  194. public System.Data.Linq.Table<CodeCamp.Entities01.Tag> Tags
  195. {
  196. get
  197. {
  198. return this.GetTable<CodeCamp.Entities01.Tag>();
  199. }
  200. }
  201. public System.Data.Linq.Table<CodeCamp.Entities01.Task> Tasks
  202. {
  203. get
  204. {
  205. return this.GetTable<CodeCamp.Entities01.Task>();
  206. }
  207. }
  208. public System.Data.Linq.Table<CodeCamp.Entities01.Tasks_Timeslot> Tasks_Timeslots
  209. {
  210. get
  211. {
  212. return this.GetTable<CodeCamp.Entities01.Tasks_Timeslot>();
  213. }
  214. }
  215. public System.Data.Linq.Table<CodeCamp.Entities01.TaskTimeslot> TaskTimeslots
  216. {
  217. get
  218. {
  219. return this.GetTable<CodeCamp.Entities01.TaskTimeslot>();
  220. }
  221. }
  222. }
  223. }
  224. namespace CodeCamp.Entities01
  225. {
  226. using System.Data.Linq;
  227. using System.Data.Linq.Mapping;
  228. using System.ComponentModel;
  229. using System;
  230. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Contents].Presenters")]
  231. public partial class Presenter : INotifyPropertyChanging, INotifyPropertyChanged
  232. {
  233. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  234. private int _Id;
  235. private int _EventId;
  236. private string _UserIdentityName;
  237. private string _FirstName;
  238. private string _LastName;
  239. private string _TwitterName;
  240. private string _EmailAddress;
  241. private string _WebsiteUrl;
  242. private string _BlogUrl;
  243. private string _Biography;
  244. private string _ShirtSize;
  245. private EntitySet<SessionPresenter> _SessionPresenters;
  246. private EntitySet<SpeakerRateSpeaker> _SpeakerRateSpeakers;
  247. private EntityRef<Event> _Event;
  248. #region Extensibility Method Definitions
  249. partial void OnLoaded();
  250. partial void OnValidate(System.Data.Linq.ChangeAction action);
  251. partial void OnCreated();
  252. partial void OnIdChanging(int value);
  253. partial void OnIdChanged();
  254. partial void OnEventIdChanging(int value);
  255. partial void OnEventIdChanged();
  256. partial void OnUserIdentityNameChanging(string value);
  257. partial void OnUserIdentityNameChanged();
  258. partial void OnFirstNameChanging(string value);
  259. partial void OnFirstNameChanged();
  260. partial void OnLastNameChanging(string value);
  261. partial void OnLastNameChanged();
  262. partial void OnTwitterNameChanging(string value);
  263. partial void OnTwitterNameChanged();
  264. partial void OnEmailAddressChanging(string value);
  265. partial void OnEmailAddressChanged();
  266. partial void OnWebsiteUrlChanging(string value);
  267. partial void OnWebsiteUrlChanged();
  268. partial void OnBlogUrlChanging(string value);
  269. partial void OnBlogUrlChanged();
  270. partial void OnBiographyChanging(string value);
  271. partial void OnBiographyChanged();
  272. partial void OnShirtSizeChanging(string value);
  273. partial void OnShirtSizeChanged();
  274. #endregion
  275. public Presenter()
  276. {
  277. this._SessionPresenters = new EntitySet<SessionPresenter>(new Action<SessionPresenter>(this.attach_SessionPresenters), new Action<SessionPresenter>(this.detach_SessionPresenters));
  278. this._SpeakerRateSpeakers = new EntitySet<SpeakerRateSpeaker>(new Action<SpeakerRateSpeaker>(this.attach_SpeakerRateSpeakers), new Action<SpeakerRateSpeaker>(this.detach_SpeakerRateSpeakers));
  279. this._Event = default(EntityRef<Event>);
  280. OnCreated();
  281. }
  282. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  283. public int Id
  284. {
  285. get
  286. {
  287. return this._Id;
  288. }
  289. set
  290. {
  291. if ((this._Id != value))
  292. {
  293. this.OnIdChanging(value);
  294. this.SendPropertyChanging();
  295. this._Id = value;
  296. this.SendPropertyChanged("Id");
  297. this.OnIdChanged();
  298. }
  299. }
  300. }
  301. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
  302. public int EventId
  303. {
  304. get
  305. {
  306. return this._EventId;
  307. }
  308. set
  309. {
  310. if ((this._EventId != value))
  311. {
  312. if (this._Event.HasLoadedOrAssignedValue)
  313. {
  314. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  315. }
  316. this.OnEventIdChanging(value);
  317. this.SendPropertyChanging();
  318. this._EventId = value;
  319. this.SendPropertyChanged("EventId");
  320. this.OnEventIdChanged();
  321. }
  322. }
  323. }
  324. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserIdentityName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  325. public string UserIdentityName
  326. {
  327. get
  328. {
  329. return this._UserIdentityName;
  330. }
  331. set
  332. {
  333. if ((this._UserIdentityName != value))
  334. {
  335. this.OnUserIdentityNameChanging(value);
  336. this.SendPropertyChanging();
  337. this._UserIdentityName = value;
  338. this.SendPropertyChanged("UserIdentityName");
  339. this.OnUserIdentityNameChanged();
  340. }
  341. }
  342. }
  343. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  344. public string FirstName
  345. {
  346. get
  347. {
  348. return this._FirstName;
  349. }
  350. set
  351. {
  352. if ((this._FirstName != value))
  353. {
  354. this.OnFirstNameChanging(value);
  355. this.SendPropertyChanging();
  356. this._FirstName = value;
  357. this.SendPropertyChanged("FirstName");
  358. this.OnFirstNameChanged();
  359. }
  360. }
  361. }
  362. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  363. public string LastName
  364. {
  365. get
  366. {
  367. return this._LastName;
  368. }
  369. set
  370. {
  371. if ((this._LastName != value))
  372. {
  373. this.OnLastNameChanging(value);
  374. this.SendPropertyChanging();
  375. this._LastName = value;
  376. this.SendPropertyChanged("LastName");
  377. this.OnLastNameChanged();
  378. }
  379. }
  380. }
  381. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TwitterName", DbType="NVarChar(128)")]
  382. public string TwitterName
  383. {
  384. get
  385. {
  386. return this._TwitterName;
  387. }
  388. set
  389. {
  390. if ((this._TwitterName != value))
  391. {
  392. this.OnTwitterNameChanging(value);
  393. this.SendPropertyChanging();
  394. this._TwitterName = value;
  395. this.SendPropertyChanged("TwitterName");
  396. this.OnTwitterNameChanged();
  397. }
  398. }
  399. }
  400. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmailAddress", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  401. public string EmailAddress
  402. {
  403. get
  404. {
  405. return this._EmailAddress;
  406. }
  407. set
  408. {
  409. if ((this._EmailAddress != value))
  410. {
  411. this.OnEmailAddressChanging(value);
  412. this.SendPropertyChanging();
  413. this._EmailAddress = value;
  414. this.SendPropertyChanged("EmailAddress");
  415. this.OnEmailAddressChanged();
  416. }
  417. }
  418. }
  419. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WebsiteUrl", DbType="NVarChar(1024)")]
  420. public string WebsiteUrl
  421. {
  422. get
  423. {
  424. return this._WebsiteUrl;
  425. }
  426. set
  427. {
  428. if ((this._WebsiteUrl != value))
  429. {
  430. this.OnWebsiteUrlChanging(value);
  431. this.SendPropertyChanging();
  432. this._WebsiteUrl = value;
  433. this.SendPropertyChanged("WebsiteUrl");
  434. this.OnWebsiteUrlChanged();
  435. }
  436. }
  437. }
  438. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BlogUrl", DbType="NVarChar(1024)")]
  439. public string BlogUrl
  440. {
  441. get
  442. {
  443. return this._BlogUrl;
  444. }
  445. set
  446. {
  447. if ((this._BlogUrl != value))
  448. {
  449. this.OnBlogUrlChanging(value);
  450. this.SendPropertyChanging();
  451. this._BlogUrl = value;
  452. this.SendPropertyChanged("BlogUrl");
  453. this.OnBlogUrlChanged();
  454. }
  455. }
  456. }
  457. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Biography", DbType="NVarChar(4000) NOT NULL", CanBeNull=false)]
  458. public string Biography
  459. {
  460. get
  461. {
  462. return this._Biography;
  463. }
  464. set
  465. {
  466. if ((this._Biography != value))
  467. {
  468. this.OnBiographyChanging(value);
  469. this.SendPropertyChanging();
  470. this._Biography = value;
  471. this.SendPropertyChanged("Biography");
  472. this.OnBiographyChanged();
  473. }
  474. }
  475. }
  476. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShirtSize", DbType="NVarChar(MAX)")]
  477. public string ShirtSize
  478. {
  479. get
  480. {
  481. return this._ShirtSize;
  482. }
  483. set
  484. {
  485. if ((this._ShirtSize != value))
  486. {
  487. this.OnShirtSizeChanging(value);
  488. this.SendPropertyChanging();
  489. this._ShirtSize = value;
  490. this.SendPropertyChanged("ShirtSize");
  491. this.OnShirtSizeChanged();
  492. }
  493. }
  494. }
  495. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Presenter_SessionPresenter", Storage="_SessionPresenters", ThisKey="Id", OtherKey="PresenterId")]
  496. public EntitySet<SessionPresenter> SessionPresenters
  497. {
  498. get
  499. {
  500. return this._SessionPresenters;
  501. }
  502. set
  503. {
  504. this._SessionPresenters.Assign(value);
  505. }
  506. }
  507. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Presenter_SpeakerRateSpeaker", Storage="_SpeakerRateSpeakers", ThisKey="Id", OtherKey="PresenterId")]
  508. public EntitySet<SpeakerRateSpeaker> SpeakerRateSpeakers
  509. {
  510. get
  511. {
  512. return this._SpeakerRateSpeakers;
  513. }
  514. set
  515. {
  516. this._SpeakerRateSpeakers.Assign(value);
  517. }
  518. }
  519. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Presenter", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
  520. public Event Event
  521. {
  522. get
  523. {
  524. return this._Event.Entity;
  525. }
  526. set
  527. {
  528. Event previousValue = this._Event.Entity;
  529. if (((previousValue != value)
  530. || (this._Event.HasLoadedOrAssignedValue == false)))
  531. {
  532. this.SendPropertyChanging();
  533. if ((previousValue != null))
  534. {
  535. this._Event.Entity = null;
  536. previousValue.Presenters.Remove(this);
  537. }
  538. this._Event.Entity = value;
  539. if ((value != null))
  540. {
  541. value.Presenters.Add(this);
  542. this._EventId = value.Id;
  543. }
  544. else
  545. {
  546. this._EventId = default(int);
  547. }
  548. this.SendPropertyChanged("Event");
  549. }
  550. }
  551. }
  552. public event PropertyChangingEventHandler PropertyChanging;
  553. public event PropertyChangedEventHandler PropertyChanged;
  554. protected virtual void SendPropertyChanging()
  555. {
  556. if ((this.PropertyChanging != null))
  557. {
  558. this.PropertyChanging(this, emptyChangingEventArgs);
  559. }
  560. }
  561. protected virtual void SendPropertyChanged(String propertyName)
  562. {
  563. if ((this.PropertyChanged != null))
  564. {
  565. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  566. }
  567. }
  568. private void attach_SessionPresenters(SessionPresenter entity)
  569. {
  570. this.SendPropertyChanging();
  571. entity.Presenter = this;
  572. }
  573. private void detach_SessionPresenters(SessionPresenter entity)
  574. {
  575. this.SendPropertyChanging();
  576. entity.Presenter = null;
  577. }
  578. private void attach_SpeakerRateSpeakers(SpeakerRateSpeaker entity)
  579. {
  580. this.SendPropertyChanging();
  581. entity.Presenter = this;
  582. }
  583. private void detach_SpeakerRateSpeakers(SpeakerRateSpeaker entity)
  584. {
  585. this.SendPropertyChanging();
  586. entity.Presenter = null;
  587. }
  588. }
  589. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Contents].SessionPresenters")]
  590. public partial class SessionPresenter : INotifyPropertyChanging, INotifyPropertyChanged
  591. {
  592. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  593. private int _Id;
  594. private int _SessionId;
  595. private int _PresenterId;
  596. private EntityRef<Presenter> _Presenter;
  597. private EntityRef<Session> _Session;
  598. #region Extensibility Method Definitions
  599. partial void OnLoaded();
  600. partial void OnValidate(System.Data.Linq.ChangeAction action);
  601. partial void OnCreated();
  602. partial void OnIdChanging(int value);
  603. partial void OnIdChanged();
  604. partial void OnSessionIdChanging(int value);
  605. partial void OnSessionIdChanged();
  606. partial void OnPresenterIdChanging(int value);
  607. partial void OnPresenterIdChanged();
  608. #endregion
  609. public SessionPresenter()
  610. {
  611. this._Presenter = default(EntityRef<Presenter>);
  612. this._Session = default(EntityRef<Session>);
  613. OnCreated();
  614. }
  615. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  616. public int Id
  617. {
  618. get
  619. {
  620. return this._Id;
  621. }
  622. set
  623. {
  624. if ((this._Id != value))
  625. {
  626. this.OnIdChanging(value);
  627. this.SendPropertyChanging();
  628. this._Id = value;
  629. this.SendPropertyChanged("Id");
  630. this.OnIdChanged();
  631. }
  632. }
  633. }
  634. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionId", DbType="Int NOT NULL")]
  635. public int SessionId
  636. {
  637. get
  638. {
  639. return this._SessionId;
  640. }
  641. set
  642. {
  643. if ((this._SessionId != value))
  644. {
  645. if (this._Session.HasLoadedOrAssignedValue)
  646. {
  647. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  648. }
  649. this.OnSessionIdChanging(value);
  650. this.SendPropertyChanging();
  651. this._SessionId = value;
  652. this.SendPropertyChanged("SessionId");
  653. this.OnSessionIdChanged();
  654. }
  655. }
  656. }
  657. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PresenterId", DbType="Int NOT NULL")]
  658. public int PresenterId
  659. {
  660. get
  661. {
  662. return this._PresenterId;
  663. }
  664. set
  665. {
  666. if ((this._PresenterId != value))
  667. {
  668. if (this._Presenter.HasLoadedOrAssignedValue)
  669. {
  670. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  671. }
  672. this.OnPresenterIdChanging(value);
  673. this.SendPropertyChanging();
  674. this._PresenterId = value;
  675. this.SendPropertyChanged("PresenterId");
  676. this.OnPresenterIdChanged();
  677. }
  678. }
  679. }
  680. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Presenter_SessionPresenter", Storage="_Presenter", ThisKey="PresenterId", OtherKey="Id", IsForeignKey=true)]
  681. public Presenter Presenter
  682. {
  683. get
  684. {
  685. return this._Presenter.Entity;
  686. }
  687. set
  688. {
  689. Presenter previousValue = this._Presenter.Entity;
  690. if (((previousValue != value)
  691. || (this._Presenter.HasLoadedOrAssignedValue == false)))
  692. {
  693. this.SendPropertyChanging();
  694. if ((previousValue != null))
  695. {
  696. this._Presenter.Entity = null;
  697. previousValue.SessionPresenters.Remove(this);
  698. }
  699. this._Presenter.Entity = value;
  700. if ((value != null))
  701. {
  702. value.SessionPresenters.Add(this);
  703. this._PresenterId = value.Id;
  704. }
  705. else
  706. {
  707. this._PresenterId = default(int);
  708. }
  709. this.SendPropertyChanged("Presenter");
  710. }
  711. }
  712. }
  713. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SessionPresenter", Storage="_Session", ThisKey="SessionId", OtherKey="Id", IsForeignKey=true)]
  714. public Session Session
  715. {
  716. get
  717. {
  718. return this._Session.Entity;
  719. }
  720. set
  721. {
  722. Session previousValue = this._Session.Entity;
  723. if (((previousValue != value)
  724. || (this._Session.HasLoadedOrAssignedValue == false)))
  725. {
  726. this.SendPropertyChanging();
  727. if ((previousValue != null))
  728. {
  729. this._Session.Entity = null;
  730. previousValue.SessionPresenters.Remove(this);
  731. }
  732. this._Session.Entity = value;
  733. if ((value != null))
  734. {
  735. value.SessionPresenters.Add(this);
  736. this._SessionId = value.Id;
  737. }
  738. else
  739. {
  740. this._SessionId = default(int);
  741. }
  742. this.SendPropertyChanged("Session");
  743. }
  744. }
  745. }
  746. public event PropertyChangingEventHandler PropertyChanging;
  747. public event PropertyChangedEventHandler PropertyChanged;
  748. protected virtual void SendPropertyChanging()
  749. {
  750. if ((this.PropertyChanging != null))
  751. {
  752. this.PropertyChanging(this, emptyChangingEventArgs);
  753. }
  754. }
  755. protected virtual void SendPropertyChanged(String propertyName)
  756. {
  757. if ((this.PropertyChanged != null))
  758. {
  759. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  760. }
  761. }
  762. }
  763. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Contents].Sessions")]
  764. public partial class Session : INotifyPropertyChanging, INotifyPropertyChanged
  765. {
  766. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  767. private int _Id;
  768. private int _EventId;
  769. private string _Title;
  770. private string _Description;
  771. private string _SessionMaterialsUrl;
  772. private EntitySet<SessionPresenter> _SessionPresenters;
  773. private EntitySet<SpeakerRateTalk> _SpeakerRateTalks;
  774. private EntitySet<SessionTag> _SessionTags;
  775. private EntityRef<Event> _Event;
  776. #region Extensibility Method Definitions
  777. partial void OnLoaded();
  778. partial void OnValidate(System.Data.Linq.ChangeAction action);
  779. partial void OnCreated();
  780. partial void OnIdChanging(int value);
  781. partial void OnIdChanged();
  782. partial void OnEventIdChanging(int value);
  783. partial void OnEventIdChanged();
  784. partial void OnTitleChanging(string value);
  785. partial void OnTitleChanged();
  786. partial void OnDescriptionChanging(string value);
  787. partial void OnDescriptionChanged();
  788. partial void OnSessionMaterialsUrlChanging(string value);
  789. partial void OnSessionMaterialsUrlChanged();
  790. #endregion
  791. public Session()
  792. {
  793. this._SessionPresenters = new EntitySet<SessionPresenter>(new Action<SessionPresenter>(this.attach_SessionPresenters), new Action<SessionPresenter>(this.detach_SessionPresenters));
  794. this._SpeakerRateTalks = new EntitySet<SpeakerRateTalk>(new Action<SpeakerRateTalk>(this.attach_SpeakerRateTalks), new Action<SpeakerRateTalk>(this.detach_SpeakerRateTalks));
  795. this._SessionTags = new EntitySet<SessionTag>(new Action<SessionTag>(this.attach_SessionTags), new Action<SessionTag>(this.detach_SessionTags));
  796. this._Event = default(EntityRef<Event>);
  797. OnCreated();
  798. }
  799. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  800. public int Id
  801. {
  802. get
  803. {
  804. return this._Id;
  805. }
  806. set
  807. {
  808. if ((this._Id != value))
  809. {
  810. this.OnIdChanging(value);
  811. this.SendPropertyChanging();
  812. this._Id = value;
  813. this.SendPropertyChanged("Id");
  814. this.OnIdChanged();
  815. }
  816. }
  817. }
  818. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
  819. public int EventId
  820. {
  821. get
  822. {
  823. return this._EventId;
  824. }
  825. set
  826. {
  827. if ((this._EventId != value))
  828. {
  829. if (this._Event.HasLoadedOrAssignedValue)
  830. {
  831. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  832. }
  833. this.OnEventIdChanging(value);
  834. this.SendPropertyChanging();
  835. this._EventId = value;
  836. this.SendPropertyChanged("EventId");
  837. this.OnEventIdChanged();
  838. }
  839. }
  840. }
  841. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Title", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  842. public string Title
  843. {
  844. get
  845. {
  846. return this._Title;
  847. }
  848. set
  849. {
  850. if ((this._Title != value))
  851. {
  852. this.OnTitleChanging(value);
  853. this.SendPropertyChanging();
  854. this._Title = value;
  855. this.SendPropertyChanged("Title");
  856. this.OnTitleChanged();
  857. }
  858. }
  859. }
  860. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(4000) NOT NULL", CanBeNull=false)]
  861. public string Description
  862. {
  863. get
  864. {
  865. return this._Description;
  866. }
  867. set
  868. {
  869. if ((this._Description != value))
  870. {
  871. this.OnDescriptionChanging(value);
  872. this.SendPropertyChanging();
  873. this._Description = value;
  874. this.SendPropertyChanged("Description");
  875. this.OnDescriptionChanged();
  876. }
  877. }
  878. }
  879. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionMaterialsUrl", DbType="NVarChar(128)")]
  880. public string SessionMaterialsUrl
  881. {
  882. get
  883. {
  884. return this._SessionMaterialsUrl;
  885. }
  886. set
  887. {
  888. if ((this._SessionMaterialsUrl != value))
  889. {
  890. this.OnSessionMaterialsUrlChanging(value);
  891. this.SendPropertyChanging();
  892. this._SessionMaterialsUrl = value;
  893. this.SendPropertyChanged("SessionMaterialsUrl");
  894. this.OnSessionMaterialsUrlChanged();
  895. }
  896. }
  897. }
  898. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SessionPresenter", Storage="_SessionPresenters", ThisKey="Id", OtherKey="SessionId")]
  899. public EntitySet<SessionPresenter> SessionPresenters
  900. {
  901. get
  902. {
  903. return this._SessionPresenters;
  904. }
  905. set
  906. {
  907. this._SessionPresenters.Assign(value);
  908. }
  909. }
  910. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SpeakerRateTalk", Storage="_SpeakerRateTalks", ThisKey="Id", OtherKey="SessionId")]
  911. public EntitySet<SpeakerRateTalk> SpeakerRateTalks
  912. {
  913. get
  914. {
  915. return this._SpeakerRateTalks;
  916. }
  917. set
  918. {
  919. this._SpeakerRateTalks.Assign(value);
  920. }
  921. }
  922. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SessionTag", Storage="_SessionTags", ThisKey="Id", OtherKey="SessionId")]
  923. public EntitySet<SessionTag> SessionTags
  924. {
  925. get
  926. {
  927. return this._SessionTags;
  928. }
  929. set
  930. {
  931. this._SessionTags.Assign(value);
  932. }
  933. }
  934. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Session", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
  935. public Event Event
  936. {
  937. get
  938. {
  939. return this._Event.Entity;
  940. }
  941. set
  942. {
  943. Event previousValue = this._Event.Entity;
  944. if (((previousValue != value)
  945. || (this._Event.HasLoadedOrAssignedValue == false)))
  946. {
  947. this.SendPropertyChanging();
  948. if ((previousValue != null))
  949. {
  950. this._Event.Entity = null;
  951. previousValue.Sessions.Remove(this);
  952. }
  953. this._Event.Entity = value;
  954. if ((value != null))
  955. {
  956. value.Sessions.Add(this);
  957. this._EventId = value.Id;
  958. }
  959. else
  960. {
  961. this._EventId = default(int);
  962. }
  963. this.SendPropertyChanged("Event");
  964. }
  965. }
  966. }
  967. public event PropertyChangingEventHandler PropertyChanging;
  968. public event PropertyChangedEventHandler PropertyChanged;
  969. protected virtual void SendPropertyChanging()
  970. {
  971. if ((this.PropertyChanging != null))
  972. {
  973. this.PropertyChanging(this, emptyChangingEventArgs);
  974. }
  975. }
  976. protected virtual void SendPropertyChanged(String propertyName)
  977. {
  978. if ((this.PropertyChanged != null))
  979. {
  980. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  981. }
  982. }
  983. private void attach_SessionPresenters(SessionPresenter entity)
  984. {
  985. this.SendPropertyChanging();
  986. entity.Session = this;
  987. }
  988. private void detach_SessionPresenters(SessionPresenter entity)
  989. {
  990. this.SendPropertyChanging();
  991. entity.Session = null;
  992. }
  993. private void attach_SpeakerRateTalks(SpeakerRateTalk entity)
  994. {
  995. this.SendPropertyChanging();
  996. entity.Session = this;
  997. }
  998. private void detach_SpeakerRateTalks(SpeakerRateTalk entity)
  999. {
  1000. this.SendPropertyChanging();
  1001. entity.Session = null;
  1002. }
  1003. private void attach_SessionTags(SessionTag entity)
  1004. {
  1005. this.SendPropertyChanging();
  1006. entity.Session = this;
  1007. }
  1008. private void detach_SessionTags(SessionTag entity)
  1009. {
  1010. this.SendPropertyChanging();
  1011. entity.Session = null;
  1012. }
  1013. }
  1014. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Events].Events")]
  1015. public partial class Event : INotifyPropertyChanging, INotifyPropertyChanged
  1016. {
  1017. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1018. private int _Id;
  1019. private string _DisplayName;
  1020. private string _ShortName;
  1021. private EntitySet<Presenter> _Presenters;
  1022. private EntitySet<Session> _Sessions;
  1023. private EntitySet<SpeakerRateEvent> _SpeakerRateEvents;
  1024. private EntitySet<CommunitySponsor> _CommunitySponsors;
  1025. private EntitySet<IndividualContributor> _IndividualContributors;
  1026. private EntitySet<Sponsor> _Sponsors;
  1027. private EntitySet<Tag> _Tags;
  1028. private EntitySet<Task> _Tasks;
  1029. #region Extensibility Method Definitions
  1030. partial void OnLoaded();
  1031. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1032. partial void OnCreated();
  1033. partial void OnIdChanging(int value);
  1034. partial void OnIdChanged();
  1035. partial void OnDisplayNameChanging(string value);
  1036. partial void OnDisplayNameChanged();
  1037. partial void OnShortNameChanging(string value);
  1038. partial void OnShortNameChanged();
  1039. #endregion
  1040. public Event()
  1041. {
  1042. this._Presenters = new EntitySet<Presenter>(new Action<Presenter>(this.attach_Presenters), new Action<Presenter>(this.detach_Presenters));
  1043. this._Sessions = new EntitySet<Session>(new Action<Session>(this.attach_Sessions), new Action<Session>(this.detach_Sessions));
  1044. this._SpeakerRateEvents = new EntitySet<SpeakerRateEvent>(new Action<SpeakerRateEvent>(this.attach_SpeakerRateEvents), new Action<SpeakerRateEvent>(this.detach_SpeakerRateEvents));
  1045. this._CommunitySponsors = new EntitySet<CommunitySponsor>(new Action<CommunitySponsor>(this.attach_CommunitySponsors), new Action<CommunitySponsor>(this.detach_CommunitySponsors));
  1046. this._IndividualContributors = new EntitySet<IndividualContributor>(new Action<IndividualContributor>(this.attach_IndividualContributors), new Action<IndividualContributor>(this.detach_IndividualContributors));
  1047. this._Sponsors = new EntitySet<Sponsor>(new Action<Sponsor>(this.attach_Sponsors), new Action<Sponsor>(this.detach_Sponsors));
  1048. this._Tags = new EntitySet<Tag>(new Action<Tag>(this.attach_Tags), new Action<Tag>(this.detach_Tags));
  1049. this._Tasks = new EntitySet<Task>(new Action<Task>(this.attach_Tasks), new Action<Task>(this.detach_Tasks));
  1050. OnCreated();
  1051. }
  1052. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1053. public int Id
  1054. {
  1055. get
  1056. {
  1057. return this._Id;
  1058. }
  1059. set
  1060. {
  1061. if ((this._Id != value))
  1062. {
  1063. this.OnIdChanging(value);
  1064. this.SendPropertyChanging();
  1065. this._Id = value;
  1066. this.SendPropertyChanged("Id");
  1067. this.OnIdChanged();
  1068. }
  1069. }
  1070. }
  1071. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  1072. public string DisplayName
  1073. {
  1074. get
  1075. {
  1076. return this._DisplayName;
  1077. }
  1078. set
  1079. {
  1080. if ((this._DisplayName != value))
  1081. {
  1082. this.OnDisplayNameChanging(value);
  1083. this.SendPropertyChanging();
  1084. this._DisplayName = value;
  1085. this.SendPropertyChanged("DisplayName");
  1086. this.OnDisplayNameChanged();
  1087. }
  1088. }
  1089. }
  1090. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShortName", DbType="NVarChar(32) NOT NULL", CanBeNull=false)]
  1091. public string ShortName
  1092. {
  1093. get
  1094. {
  1095. return this._ShortName;
  1096. }
  1097. set
  1098. {
  1099. if ((this._ShortName != value))
  1100. {
  1101. this.OnShortNameChanging(value);
  1102. this.SendPropertyChanging();
  1103. this._ShortName = value;
  1104. this.SendPropertyChanged("ShortName");
  1105. this.OnShortNameChanged();
  1106. }
  1107. }
  1108. }
  1109. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Presenter", Storage="_Presenters", ThisKey="Id", OtherKey="EventId")]
  1110. public EntitySet<Presenter> Presenters
  1111. {
  1112. get
  1113. {
  1114. return this._Presenters;
  1115. }
  1116. set
  1117. {
  1118. this._Presenters.Assign(value);
  1119. }
  1120. }
  1121. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Session", Storage="_Sessions", ThisKey="Id", OtherKey="EventId")]
  1122. public EntitySet<Session> Sessions
  1123. {
  1124. get
  1125. {
  1126. return this._Sessions;
  1127. }
  1128. set
  1129. {
  1130. this._Sessions.Assign(value);
  1131. }
  1132. }
  1133. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_SpeakerRateEvent", Storage="_SpeakerRateEvents", ThisKey="Id", OtherKey="EventId")]
  1134. public EntitySet<SpeakerRateEvent> SpeakerRateEvents
  1135. {
  1136. get
  1137. {
  1138. return this._SpeakerRateEvents;
  1139. }
  1140. set
  1141. {
  1142. this._SpeakerRateEvents.Assign(value);
  1143. }
  1144. }
  1145. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_CommunitySponsor", Storage="_CommunitySponsors", ThisKey="Id", OtherKey="EventId")]
  1146. public EntitySet<CommunitySponsor> CommunitySponsors
  1147. {
  1148. get
  1149. {
  1150. return this._CommunitySponsors;
  1151. }
  1152. set
  1153. {
  1154. this._CommunitySponsors.Assign(value);
  1155. }
  1156. }
  1157. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_IndividualContributor", Storage="_IndividualContributors", ThisKey="Id", OtherKey="EventId")]
  1158. public EntitySet<IndividualContributor> IndividualContributors
  1159. {
  1160. get
  1161. {
  1162. return this._IndividualContributors;
  1163. }
  1164. set
  1165. {
  1166. this._IndividualContributors.Assign(value);
  1167. }
  1168. }
  1169. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Sponsor", Storage="_Sponsors", ThisKey="Id", OtherKey="EventId")]
  1170. public EntitySet<Sponsor> Sponsors
  1171. {
  1172. get
  1173. {
  1174. return this._Sponsors;
  1175. }
  1176. set
  1177. {
  1178. this._Sponsors.Assign(value);
  1179. }
  1180. }
  1181. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Tag", Storage="_Tags", ThisKey="Id", OtherKey="EventId")]
  1182. public EntitySet<Tag> Tags
  1183. {
  1184. get
  1185. {
  1186. return this._Tags;
  1187. }
  1188. set
  1189. {
  1190. this._Tags.Assign(value);
  1191. }
  1192. }
  1193. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Task", Storage="_Tasks", ThisKey="Id", OtherKey="EventId")]
  1194. public EntitySet<Task> Tasks
  1195. {
  1196. get
  1197. {
  1198. return this._Tasks;
  1199. }
  1200. set
  1201. {
  1202. this._Tasks.Assign(value);
  1203. }
  1204. }
  1205. public event PropertyChangingEventHandler PropertyChanging;
  1206. public event PropertyChangedEventHandler PropertyChanged;
  1207. protected virtual void SendPropertyChanging()
  1208. {
  1209. if ((this.PropertyChanging != null))
  1210. {
  1211. this.PropertyChanging(this, emptyChangingEventArgs);
  1212. }
  1213. }
  1214. protected virtual void SendPropertyChanged(String propertyName)
  1215. {
  1216. if ((this.PropertyChanged != null))
  1217. {
  1218. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1219. }
  1220. }
  1221. private void attach_Presenters(Presenter entity)
  1222. {
  1223. this.SendPropertyChanging();
  1224. entity.Event = this;
  1225. }
  1226. private void detach_Presenters(Presenter entity)
  1227. {
  1228. this.SendPropertyChanging();
  1229. entity.Event = null;
  1230. }
  1231. private void attach_Sessions(Session entity)
  1232. {
  1233. this.SendPropertyChanging();
  1234. entity.Event = this;
  1235. }
  1236. private void detach_Sessions(Session entity)
  1237. {
  1238. this.SendPropertyChanging();
  1239. entity.Event = null;
  1240. }
  1241. private void attach_SpeakerRateEvents(SpeakerRateEvent entity)
  1242. {
  1243. this.SendPropertyChanging();
  1244. entity.Event = this;
  1245. }
  1246. private void detach_SpeakerRateEvents(SpeakerRateEvent entity)
  1247. {
  1248. this.SendPropertyChanging();
  1249. entity.Event = null;
  1250. }
  1251. private void attach_CommunitySponsors(CommunitySponsor entity)
  1252. {
  1253. this.SendPropertyChanging();
  1254. entity.Event = this;
  1255. }
  1256. private void detach_CommunitySponsors(CommunitySponsor entity)
  1257. {
  1258. this.SendPropertyChanging();
  1259. entity.Event = null;
  1260. }
  1261. private void attach_IndividualContributors(IndividualContributor entity)
  1262. {
  1263. this.SendPropertyChanging();
  1264. entity.Event = this;
  1265. }
  1266. private void detach_IndividualContributors(IndividualContributor entity)
  1267. {
  1268. this.SendPropertyChanging();
  1269. entity.Event = null;
  1270. }
  1271. private void attach_Sponsors(Sponsor entity)
  1272. {
  1273. this.SendPropertyChanging();
  1274. entity.Event = this;
  1275. }
  1276. private void detach_Sponsors(Sponsor entity)
  1277. {
  1278. this.SendPropertyChanging();
  1279. entity.Event = null;
  1280. }
  1281. private void attach_Tags(Tag entity)
  1282. {
  1283. this.SendPropertyChanging();
  1284. entity.Event = this;
  1285. }
  1286. private void detach_Tags(Tag entity)
  1287. {
  1288. this.SendPropertyChanging();
  1289. entity.Event = null;
  1290. }
  1291. private void attach_Tasks(Task entity)
  1292. {
  1293. this.SendPropertyChanging();
  1294. entity.Event = this;
  1295. }
  1296. private void detach_Tasks(Task entity)
  1297. {
  1298. this.SendPropertyChanging();
  1299. entity.Event = null;
  1300. }
  1301. }
  1302. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Schema].CurrentVersion")]
  1303. public partial class CurrentVersion : INotifyPropertyChanging, INotifyPropertyChanged
  1304. {
  1305. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1306. private int _Id;
  1307. private int _VersionNumber;
  1308. #region Extensibility Method Definitions
  1309. partial void OnLoaded();
  1310. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1311. partial void OnCreated();
  1312. partial void OnIdChanging(int value);
  1313. partial void OnIdChanged();
  1314. partial void OnVersionNumberChanging(int value);
  1315. partial void OnVersionNumberChanged();
  1316. #endregion
  1317. public CurrentVersion()
  1318. {
  1319. OnCreated();
  1320. }
  1321. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1322. public int Id
  1323. {
  1324. get
  1325. {
  1326. return this._Id;
  1327. }
  1328. set
  1329. {
  1330. if ((this._Id != value))
  1331. {
  1332. this.OnIdChanging(value);
  1333. this.SendPropertyChanging();
  1334. this._Id = value;
  1335. this.SendPropertyChanged("Id");
  1336. this.OnIdChanged();
  1337. }
  1338. }
  1339. }
  1340. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VersionNumber", DbType="Int NOT NULL")]
  1341. public int VersionNumber
  1342. {
  1343. get
  1344. {
  1345. return this._VersionNumber;
  1346. }
  1347. set
  1348. {
  1349. if ((this._VersionNumber != value))
  1350. {
  1351. this.OnVersionNumberChanging(value);
  1352. this.SendPropertyChanging();
  1353. this._VersionNumber = value;
  1354. this.SendPropertyChanged("VersionNumber");
  1355. this.OnVersionNumberChanged();
  1356. }
  1357. }
  1358. }
  1359. public event PropertyChangingEventHandler PropertyChanging;
  1360. public event PropertyChangedEventHandler PropertyChanged;
  1361. protected virtual void SendPropertyChanging()
  1362. {
  1363. if ((this.PropertyChanging != null))
  1364. {
  1365. this.PropertyChanging(this, emptyChangingEventArgs);
  1366. }
  1367. }
  1368. protected virtual void SendPropertyChanged(String propertyName)
  1369. {
  1370. if ((this.PropertyChanged != null))
  1371. {
  1372. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1373. }
  1374. }
  1375. }
  1376. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.SpeakerRate].SpeakerRateEvents")]
  1377. public partial class SpeakerRateEvent : INotifyPropertyChanging, INotifyPropertyChanged
  1378. {
  1379. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1380. private int _Id;
  1381. private int _EventId;
  1382. private string _EventUrl;
  1383. private EntityRef<Event> _Event;
  1384. #region Extensibility Method Definitions
  1385. partial void OnLoaded();
  1386. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1387. partial void OnCreated();
  1388. partial void OnIdChanging(int value);
  1389. partial void OnIdChanged();
  1390. partial void OnEventIdChanging(int value);
  1391. partial void OnEventIdChanged();
  1392. partial void OnEventUrlChanging(string value);
  1393. partial void OnEventUrlChanged();
  1394. #endregion
  1395. public SpeakerRateEvent()
  1396. {
  1397. this._Event = default(EntityRef<Event>);
  1398. OnCreated();
  1399. }
  1400. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1401. public int Id
  1402. {
  1403. get
  1404. {
  1405. return this._Id;
  1406. }
  1407. set
  1408. {
  1409. if ((this._Id != value))
  1410. {
  1411. this.OnIdChanging(value);
  1412. this.SendPropertyChanging();
  1413. this._Id = value;
  1414. this.SendPropertyChanged("Id");
  1415. this.OnIdChanged();
  1416. }
  1417. }
  1418. }
  1419. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
  1420. public int EventId
  1421. {
  1422. get
  1423. {
  1424. return this._EventId;
  1425. }
  1426. set
  1427. {
  1428. if ((this._EventId != value))
  1429. {
  1430. if (this._Event.HasLoadedOrAssignedValue)
  1431. {
  1432. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  1433. }
  1434. this.OnEventIdChanging(value);
  1435. this.SendPropertyChanging();
  1436. this._EventId = value;
  1437. this.SendPropertyChanged("EventId");
  1438. this.OnEventIdChanged();
  1439. }
  1440. }
  1441. }
  1442. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventUrl", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
  1443. public string EventUrl
  1444. {
  1445. get
  1446. {
  1447. return this._EventUrl;
  1448. }
  1449. set
  1450. {
  1451. if ((this._EventUrl != value))
  1452. {
  1453. this.OnEventUrlChanging(value);
  1454. this.SendPropertyChanging();
  1455. this._EventUrl = value;
  1456. this.SendPropertyChanged("EventUrl");
  1457. this.OnEventUrlChanged();
  1458. }
  1459. }
  1460. }
  1461. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_SpeakerRateEvent", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
  1462. public Event Event
  1463. {
  1464. get
  1465. {
  1466. return this._Event.Entity;
  1467. }
  1468. set
  1469. {
  1470. Event previousValue = this._Event.Entity;
  1471. if (((previousValue != value)
  1472. || (this._Event.HasLoadedOrAssignedValue == false)))
  1473. {
  1474. this.SendPropertyChanging();
  1475. if ((previousValue != null))
  1476. {
  1477. this._Event.Entity = null;
  1478. previousValue.SpeakerRateEvents.Remove(this);
  1479. }
  1480. this._Event.Entity = value;
  1481. if ((value != null))
  1482. {
  1483. value.SpeakerRateEvents.Add(this);
  1484. this._EventId = value.Id;
  1485. }
  1486. else
  1487. {
  1488. this._EventId = default(int);
  1489. }
  1490. this.SendPropertyChanged("Event");
  1491. }
  1492. }
  1493. }
  1494. public event PropertyChangingEventHandler PropertyChanging;
  1495. public event PropertyChangedEventHandler PropertyChanged;
  1496. protected virtual void SendPropertyChanging()
  1497. {
  1498. if ((this.PropertyChanging != null))
  1499. {
  1500. this.PropertyChanging(this, emptyChangingEventArgs);
  1501. }
  1502. }
  1503. protected virtual void SendPropertyChanged(String propertyName)
  1504. {
  1505. if ((this.PropertyChanged != null))
  1506. {
  1507. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1508. }
  1509. }
  1510. }
  1511. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.SpeakerRate].SpeakerRateSpeakers")]
  1512. public partial class SpeakerRateSpeaker : INotifyPropertyChanging, INotifyPropertyChanged
  1513. {
  1514. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1515. private int _Id;
  1516. private int _PresenterId;
  1517. private string _SpeakerUrl;
  1518. private EntityRef<Presenter> _Presenter;
  1519. #region Extensibility Method Definitions
  1520. partial void OnLoaded();
  1521. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1522. partial void OnCreated();
  1523. partial void OnIdChanging(int value);
  1524. partial void OnIdChanged();
  1525. partial void OnPresenterIdChanging(int value);
  1526. partial void OnPresenterIdChanged();
  1527. partial void OnSpeakerUrlChanging(string value);
  1528. partial void OnSpeakerUrlChanged();
  1529. #endregion
  1530. public SpeakerRateSpeaker()
  1531. {
  1532. this._Presenter = default(EntityRef<Presenter>);
  1533. OnCreated();
  1534. }
  1535. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1536. public int Id
  1537. {
  1538. get
  1539. {
  1540. return this._Id;
  1541. }
  1542. set
  1543. {
  1544. if ((this._Id != value))
  1545. {
  1546. this.OnIdChanging(value);
  1547. this.SendPropertyChanging();
  1548. this._Id = value;
  1549. this.SendPropertyChanged("Id");
  1550. this.OnIdChanged();
  1551. }
  1552. }
  1553. }
  1554. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PresenterId", DbType="Int NOT NULL")]
  1555. public int PresenterId
  1556. {
  1557. get
  1558. {
  1559. return this._PresenterId;
  1560. }
  1561. set
  1562. {
  1563. if ((this._PresenterId != value))
  1564. {
  1565. if (this._Presenter.HasLoadedOrAssignedValue)
  1566. {
  1567. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  1568. }
  1569. this.OnPresenterIdChanging(value);
  1570. this.SendPropertyChanging();
  1571. this._PresenterId = value;
  1572. this.SendPropertyChanged("PresenterId");
  1573. this.OnPresenterIdChanged();
  1574. }
  1575. }
  1576. }
  1577. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpeakerUrl", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
  1578. public string SpeakerUrl
  1579. {
  1580. get
  1581. {
  1582. return this._SpeakerUrl;
  1583. }
  1584. set
  1585. {
  1586. if ((this._SpeakerUrl != value))
  1587. {
  1588. this.OnSpeakerUrlChanging(value);
  1589. this.SendPropertyChanging();
  1590. this._SpeakerUrl = value;
  1591. this.SendPropertyChanged("SpeakerUrl");
  1592. this.OnSpeakerUrlChanged();
  1593. }
  1594. }
  1595. }
  1596. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Presenter_SpeakerRateSpeaker", Storage="_Presenter", ThisKey="PresenterId", OtherKey="Id", IsForeignKey=true)]
  1597. public Presenter Presenter
  1598. {
  1599. get
  1600. {
  1601. return this._Presenter.Entity;
  1602. }
  1603. set
  1604. {
  1605. Presenter previousValue = this._Presenter.Entity;
  1606. if (((previousValue != value)
  1607. || (this._Presenter.HasLoadedOrAssignedValue == false)))
  1608. {
  1609. this.SendPropertyChanging();
  1610. if ((previousValue != null))
  1611. {
  1612. this._Presenter.Entity = null;
  1613. previousValue.SpeakerRateSpeakers.Remove(this);
  1614. }
  1615. this._Presenter.Entity = value;
  1616. if ((value != null))
  1617. {
  1618. value.SpeakerRateSpeakers.Add(this);
  1619. this._PresenterId = value.Id;
  1620. }
  1621. else
  1622. {
  1623. this._PresenterId = default(int);
  1624. }
  1625. this.SendPropertyChanged("Presenter");
  1626. }
  1627. }
  1628. }
  1629. public event PropertyChangingEventHandler PropertyChanging;
  1630. public event PropertyChangedEventHandler PropertyChanged;
  1631. protected virtual void SendPropertyChanging()
  1632. {
  1633. if ((this.PropertyChanging != null))
  1634. {
  1635. this.PropertyChanging(this, emptyChangingEventArgs);
  1636. }
  1637. }
  1638. protected virtual void SendPropertyChanged(String propertyName)
  1639. {
  1640. if ((this.PropertyChanged != null))
  1641. {
  1642. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1643. }
  1644. }
  1645. }
  1646. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.SpeakerRate].SpeakerRateTalks")]
  1647. public partial class SpeakerRateTalk : INotifyPropertyChanging, INotifyPropertyChanged
  1648. {
  1649. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1650. private int _Id;
  1651. private int _SessionId;
  1652. private string _TalkUrl;
  1653. private EntityRef<Session> _Session;
  1654. #region Extensibility Method Definitions
  1655. partial void OnLoaded();
  1656. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1657. partial void OnCreated();
  1658. partial void OnIdChanging(int value);
  1659. partial void OnIdChanged();
  1660. partial void OnSessionIdChanging(int value);
  1661. partial void OnSessionIdChanged();
  1662. partial void OnTalkUrlChanging(string value);
  1663. partial void OnTalkUrlChanged();
  1664. #endregion
  1665. public SpeakerRateTalk()
  1666. {
  1667. this._Session = default(EntityRef<Session>);
  1668. OnCreated();
  1669. }
  1670. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1671. public int Id
  1672. {
  1673. get
  1674. {
  1675. return this._Id;
  1676. }
  1677. set
  1678. {
  1679. if ((this._Id != value))
  1680. {
  1681. this.OnIdChanging(value);
  1682. this.SendPropertyChanging();
  1683. this._Id = value;
  1684. this.SendPropertyChanged("Id");
  1685. this.OnIdChanged();
  1686. }
  1687. }
  1688. }
  1689. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionId", DbType="Int NOT NULL")]
  1690. public int SessionId
  1691. {
  1692. get
  1693. {
  1694. return this._SessionId;
  1695. }
  1696. set
  1697. {
  1698. if ((this._SessionId != value))
  1699. {
  1700. if (this._Session.HasLoadedOrAssignedValue)
  1701. {
  1702. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  1703. }
  1704. this.OnSessionIdChanging(value);
  1705. this.SendPropertyChanging();
  1706. this._SessionId = value;
  1707. this.SendPropertyChanged("SessionId");
  1708. this.OnSessionIdChanged();
  1709. }
  1710. }
  1711. }
  1712. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TalkUrl", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
  1713. public string TalkUrl
  1714. {
  1715. get
  1716. {
  1717. return this._TalkUrl;
  1718. }
  1719. set
  1720. {
  1721. if ((this._TalkUrl != value))
  1722. {
  1723. this.OnTalkUrlChanging(value);
  1724. this.SendPropertyChanging();
  1725. this._TalkUrl = value;
  1726. this.SendPropertyChanged("TalkUrl");
  1727. this.OnTalkUrlChanged();
  1728. }
  1729. }
  1730. }
  1731. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SpeakerRateTalk", Storage="_Session", ThisKey="SessionId", OtherKey="Id", IsForeignKey=true)]
  1732. public Session Session
  1733. {
  1734. get
  1735. {
  1736. return this._Session.Entity;
  1737. }
  1738. set
  1739. {
  1740. Session previousValue = this._Session.Entity;
  1741. if (((previousValue != value)
  1742. || (this._Session.HasLoadedOrAssignedValue == false)))
  1743. {
  1744. this.SendPropertyChanging();
  1745. if ((previousValue != null))
  1746. {
  1747. this._Session.Entity = null;
  1748. previousValue.SpeakerRateTalks.Remove(this);
  1749. }
  1750. this._Session.Entity = value;
  1751. if ((value != null))
  1752. {
  1753. value.SpeakerRateTalks.Add(this);
  1754. this._SessionId = value.Id;
  1755. }
  1756. else
  1757. {
  1758. this._SessionId = default(int);
  1759. }
  1760. this.SendPropertyChanged("Session");
  1761. }
  1762. }
  1763. }
  1764. public event PropertyChangingEventHandler PropertyChanging;
  1765. public event PropertyChangedEventHandler PropertyChanged;
  1766. protected virtual void SendPropertyChanging()
  1767. {
  1768. if ((this.PropertyChanging != null))
  1769. {
  1770. this.PropertyChanging(this, emptyChangingEventArgs);
  1771. }
  1772. }
  1773. protected virtual void SendPropertyChanged(String propertyName)
  1774. {
  1775. if ((this.PropertyChanged != null))
  1776. {
  1777. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1778. }
  1779. }
  1780. }
  1781. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Sponsors].CommunitySponsors")]
  1782. public partial class CommunitySponsor : INotifyPropertyChanging, INotifyPropertyChanged
  1783. {
  1784. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1785. private int _Id;
  1786. private int _EventId;
  1787. private string _Name;
  1788. private string _Url;
  1789. private EntityRef<Event> _Event;
  1790. #region Extensibility Method Definitions
  1791. partial void OnLoaded();
  1792. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1793. partial void OnCreated();
  1794. partial void OnIdChanging(int value);
  1795. partial void OnIdChanged();
  1796. partial void OnEventIdChanging(int value);
  1797. partial void OnEventIdChanged();
  1798. partial void OnNameChanging(string value);
  1799. partial void OnNameChanged();
  1800. partial void OnUrlChanging(string value);
  1801. partial void OnUrlChanged();
  1802. #endregion
  1803. public CommunitySponsor()
  1804. {
  1805. this._Event = default(EntityRef<Event>);
  1806. OnCreated();
  1807. }
  1808. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1809. public int Id
  1810. {
  1811. get
  1812. {
  1813. return this._Id;
  1814. }
  1815. set
  1816. {
  1817. if ((this._Id != value))
  1818. {
  1819. this.OnIdChanging(value);
  1820. this.SendPropertyChanging();
  1821. this._Id = value;
  1822. this.SendPropertyChanged("Id");
  1823. this.OnIdChanged();
  1824. }
  1825. }
  1826. }
  1827. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
  1828. public int EventId
  1829. {
  1830. get
  1831. {
  1832. return this._EventId;
  1833. }
  1834. set
  1835. {
  1836. if ((this._EventId != value))
  1837. {
  1838. if (this._Event.HasLoadedOrAssignedValue)
  1839. {
  1840. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  1841. }
  1842. this.OnEventIdChanging(value);
  1843. this.SendPropertyChanging();
  1844. this._EventId = value;
  1845. this.SendPropertyChanged("EventId");
  1846. this.OnEventIdChanged();
  1847. }
  1848. }
  1849. }
  1850. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  1851. public string Name
  1852. {
  1853. get
  1854. {
  1855. return this._Name;
  1856. }
  1857. set
  1858. {
  1859. if ((this._Name != value))
  1860. {
  1861. this.OnNameChanging(value);
  1862. this.SendPropertyChanging();
  1863. this._Name = value;
  1864. this.SendPropertyChanged("Name");
  1865. this.OnNameChanged();
  1866. }
  1867. }
  1868. }
  1869. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Url", DbType="NVarChar(1024) NOT NULL", CanBeNull=false)]
  1870. public string Url
  1871. {
  1872. get
  1873. {
  1874. return this._Url;
  1875. }
  1876. set
  1877. {
  1878. if ((this._Url != value))
  1879. {
  1880. this.OnUrlChanging(value);
  1881. this.SendPropertyChanging();
  1882. this._Url = value;
  1883. this.SendPropertyChanged("Url");
  1884. this.OnUrlChanged();
  1885. }
  1886. }
  1887. }
  1888. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_CommunitySponsor", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
  1889. public Event Event
  1890. {
  1891. get
  1892. {
  1893. return this._Event.Entity;
  1894. }
  1895. set
  1896. {
  1897. Event previousValue = this._Event.Entity;
  1898. if (((previousValue != value)
  1899. || (this._Event.HasLoadedOrAssignedValue == false)))
  1900. {
  1901. this.SendPropertyChanging();
  1902. if ((previousValue != null))
  1903. {
  1904. this._Event.Entity = null;
  1905. previousValue.CommunitySponsors.Remove(this);
  1906. }
  1907. this._Event.Entity = value;
  1908. if ((value != null))
  1909. {
  1910. value.CommunitySponsors.Add(this);
  1911. this._EventId = value.Id;
  1912. }
  1913. else
  1914. {
  1915. this._EventId = default(int);
  1916. }
  1917. this.SendPropertyChanged("Event");
  1918. }
  1919. }
  1920. }
  1921. public event PropertyChangingEventHandler PropertyChanging;
  1922. public event PropertyChangedEventHandler PropertyChanged;
  1923. protected virtual void SendPropertyChanging()
  1924. {
  1925. if ((this.PropertyChanging != null))
  1926. {
  1927. this.PropertyChanging(this, emptyChangingEventArgs);
  1928. }
  1929. }
  1930. protected virtual void SendPropertyChanged(String propertyName)
  1931. {
  1932. if ((this.PropertyChanged != null))
  1933. {
  1934. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1935. }
  1936. }
  1937. }
  1938. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Sponsors].IndividualContributors")]
  1939. public partial class IndividualContributor : INotifyPropertyChanging, INotifyPropertyChanged
  1940. {
  1941. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1942. private int _Id;
  1943. private int _EventId;
  1944. private string _FirstName;
  1945. private string _LastName;
  1946. private EntityRef<Event> _Event;
  1947. #region Extensibility Method Definitions
  1948. partial void OnLoaded();
  1949. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1950. partial void OnCreated();
  1951. partial void OnIdChanging(int value);
  1952. partial void OnIdChanged();
  1953. partial void OnEventIdChanging(int value);
  1954. partial void OnEventIdChanged();
  1955. partial void OnFirstNameChanging(string value);
  1956. partial void OnFirstNameChanged();
  1957. partial void OnLastNameChanging(string value);
  1958. partial void OnLastNameChanged();
  1959. #endregion
  1960. public IndividualContributor()
  1961. {
  1962. this._Event = default(EntityRef<Event>);
  1963. OnCreated();
  1964. }
  1965. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1966. public int Id
  1967. {
  1968. get
  1969. {
  1970. return this._Id;
  1971. }
  1972. set
  1973. {
  1974. if ((this._Id != value))
  1975. {
  1976. this.OnIdChanging(value);
  1977. this.SendPropertyChanging();
  1978. this._Id = value;
  1979. this.SendPropertyChanged("Id");
  1980. this.OnIdChanged();
  1981. }
  1982. }
  1983. }
  1984. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
  1985. public int EventId
  1986. {
  1987. get
  1988. {
  1989. return this._EventId;
  1990. }
  1991. set
  1992. {
  1993. if ((this._EventId != value))
  1994. {
  1995. if (this._Event.HasLoadedOrAssignedValue)
  1996. {
  1997. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  1998. }
  1999. this.OnEventIdChanging(value);
  2000. this.SendPropertyChanging();
  2001. this._EventId = value;
  2002. this.SendPropertyChanged("EventId");
  2003. this.OnEventIdChanged();
  2004. }
  2005. }
  2006. }
  2007. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  2008. public string FirstName
  2009. {
  2010. get
  2011. {
  2012. return this._FirstName;
  2013. }
  2014. set
  2015. {
  2016. if ((this._FirstName != value))
  2017. {
  2018. this.OnFirstNameChanging(value);
  2019. this.SendPropertyChanging();
  2020. this._FirstName = value;
  2021. this.SendPropertyChanged("FirstName");
  2022. this.OnFirstNameChanged();
  2023. }
  2024. }
  2025. }
  2026. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  2027. public string LastName
  2028. {
  2029. get
  2030. {
  2031. return this._LastName;
  2032. }
  2033. set
  2034. {
  2035. if ((this._LastName != value))
  2036. {
  2037. this.OnLastNameChanging(value);
  2038. this.SendPropertyChanging();
  2039. this._LastName = value;
  2040. this.SendPropertyChanged("LastName");
  2041. this.OnLastNameChanged();
  2042. }
  2043. }
  2044. }
  2045. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_IndividualContributor", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
  2046. public Event Event
  2047. {
  2048. get
  2049. {
  2050. return this._Event.Entity;
  2051. }
  2052. set
  2053. {
  2054. Event previousValue = this._Event.Entity;
  2055. if (((previousValue != value)
  2056. || (this._Event.HasLoadedOrAssignedValue == false)))
  2057. {
  2058. this.SendPropertyChanging();
  2059. if ((previousValue != null))
  2060. {
  2061. this._Event.Entity = null;
  2062. previousValue.IndividualContributors.Remove(this);
  2063. }
  2064. this._Event.Entity = value;
  2065. if ((value != null))
  2066. {
  2067. value.IndividualContributors.Add(this);
  2068. this._EventId = value.Id;
  2069. }
  2070. else
  2071. {
  2072. this._EventId = default(int);
  2073. }
  2074. this.SendPropertyChanged("Event");
  2075. }
  2076. }
  2077. }
  2078. public event PropertyChangingEventHandler PropertyChanging;
  2079. public event PropertyChangedEventHandler PropertyChanged;
  2080. protected virtual void SendPropertyChanging()
  2081. {
  2082. if ((this.PropertyChanging != null))
  2083. {
  2084. this.PropertyChanging(this, emptyChangingEventArgs);
  2085. }
  2086. }
  2087. protected virtual void SendPropertyChanged(String propertyName)
  2088. {
  2089. if ((this.PropertyChanged != null))
  2090. {
  2091. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  2092. }
  2093. }
  2094. }
  2095. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Sponsors].Sponsors")]
  2096. public partial class Sponsor : INotifyPropertyChanging, INotifyPropertyChanged
  2097. {
  2098. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  2099. private int _Id;
  2100. private int _EventId;
  2101. private string _Name;
  2102. private string _Url;
  2103. private string _ImageUrl;
  2104. private int _ImageHeight;
  2105. private int _ImageWidth;
  2106. private EntityRef<Event> _Event;
  2107. #region Extensibility Method Definitions
  2108. partial void OnLoaded();
  2109. partial void OnValidate(System.Data.Linq.ChangeAction action);
  2110. partial void OnCreated();
  2111. partial void OnIdChanging(int value);
  2112. partial void OnIdChanged();
  2113. partial void OnEventIdChanging(int value);
  2114. partial void OnEventIdChanged();
  2115. partial void OnNameChanging(string value);
  2116. partial void OnNameChanged();
  2117. partial void OnUrlChanging(string value);
  2118. partial void OnUrlChanged();
  2119. partial void OnImageUrlChanging(string value);
  2120. partial void OnImageUrlChanged();
  2121. partial void OnImageHeightChanging(int value);
  2122. partial void OnImageHeightChanged();
  2123. partial void OnImageWidthChanging(int value);
  2124. partial void OnImageWidthChanged();
  2125. #endregion
  2126. public Sponsor()
  2127. {
  2128. this._Event = default(EntityRef<Event>);
  2129. OnCreated();
  2130. }
  2131. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  2132. public int Id
  2133. {
  2134. get
  2135. {
  2136. return this._Id;
  2137. }
  2138. set
  2139. {
  2140. if ((this._Id != value))
  2141. {
  2142. this.OnIdChanging(value);
  2143. this.SendPropertyChanging();
  2144. this._Id = value;
  2145. this.SendPropertyChanged("Id");
  2146. this.OnIdChanged();
  2147. }
  2148. }
  2149. }
  2150. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
  2151. public int EventId
  2152. {
  2153. get
  2154. {
  2155. return this._EventId;
  2156. }
  2157. set
  2158. {
  2159. if ((this._EventId != value))
  2160. {
  2161. if (this._Event.HasLoadedOrAssignedValue)
  2162. {
  2163. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  2164. }
  2165. this.OnEventIdChanging(value);
  2166. this.SendPropertyChanging();
  2167. this._EventId = value;
  2168. this.SendPropertyChanged("EventId");
  2169. this.OnEventIdChanged();
  2170. }
  2171. }
  2172. }
  2173. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  2174. public string Name
  2175. {
  2176. get
  2177. {
  2178. return this._Name;
  2179. }
  2180. set
  2181. {
  2182. if ((this._Name != value))
  2183. {
  2184. this.OnNameChanging(value);
  2185. this.SendPropertyChanging();
  2186. this._Name = value;
  2187. this.SendPropertyChanged("Name");
  2188. this.OnNameChanged();
  2189. }
  2190. }
  2191. }
  2192. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Url", DbType="NVarChar(1024) NOT NULL", CanBeNull=false)]
  2193. public string Url
  2194. {
  2195. get
  2196. {
  2197. return this._Url;
  2198. }
  2199. set
  2200. {
  2201. if ((this._Url != value))
  2202. {
  2203. this.OnUrlChanging(value);
  2204. this.SendPropertyChanging();
  2205. this._Url = value;
  2206. this.SendPropertyChanged("Url");
  2207. this.OnUrlChanged();
  2208. }
  2209. }
  2210. }
  2211. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImageUrl", DbType="NVarChar(1024) NOT NULL", CanBeNull=false)]
  2212. public string ImageUrl
  2213. {
  2214. get
  2215. {
  2216. return this._ImageUrl;
  2217. }
  2218. set
  2219. {
  2220. if ((this._ImageUrl != value))
  2221. {
  2222. this.OnImageUrlChanging(value);
  2223. this.SendPropertyChanging();
  2224. this._ImageUrl = value;
  2225. this.SendPropertyChanged("ImageUrl");
  2226. this.OnImageUrlChanged();
  2227. }
  2228. }
  2229. }
  2230. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImageHeight", DbType="Int NOT NULL")]
  2231. public int ImageHeight
  2232. {
  2233. get
  2234. {
  2235. return this._ImageHeight;
  2236. }
  2237. set
  2238. {
  2239. if ((this._ImageHeight != value))
  2240. {
  2241. this.OnImageHeightChanging(value);
  2242. this.SendPropertyChanging();
  2243. this._ImageHeight = value;
  2244. this.SendPropertyChanged("ImageHeight");
  2245. this.OnImageHeightChanged();
  2246. }
  2247. }
  2248. }
  2249. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImageWidth", DbType="Int NOT NULL")]
  2250. public int ImageWidth
  2251. {
  2252. get
  2253. {
  2254. return this._ImageWidth;
  2255. }
  2256. set
  2257. {
  2258. if ((this._ImageWidth != value))
  2259. {
  2260. this.OnImageWidthChanging(value);
  2261. this.SendPropertyChanging();
  2262. this._ImageWidth = value;
  2263. this.SendPropertyChanged("ImageWidth");
  2264. this.OnImageWidthChanged();
  2265. }
  2266. }
  2267. }
  2268. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Sponsor", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
  2269. public Event Event
  2270. {
  2271. get
  2272. {
  2273. return this._Event.Entity;
  2274. }
  2275. set
  2276. {
  2277. Event previousValue = this._Event.Entity;
  2278. if (((previousValue != value)
  2279. || (this._Event.HasLoadedOrAssignedValue == false)))
  2280. {
  2281. this.SendPropertyChanging();
  2282. if ((previousValue != null))
  2283. {
  2284. this._Event.Entity = null;
  2285. previousValue.Sponsors.Remove(this);
  2286. }
  2287. this._Event.Entity = value;
  2288. if ((value != null))
  2289. {
  2290. value.Sponsors.Add(this);
  2291. this._EventId = value.Id;
  2292. }
  2293. else
  2294. {
  2295. this._EventId = default(int);
  2296. }
  2297. this.SendPropertyChanged("Event");
  2298. }
  2299. }
  2300. }
  2301. public event PropertyChangingEventHandler PropertyChanging;
  2302. public event PropertyChangedEventHandler PropertyChanged;
  2303. protected virtual void SendPropertyChanging()
  2304. {
  2305. if ((this.PropertyChanging != null))
  2306. {
  2307. this.PropertyChanging(this, emptyChangingEventArgs);
  2308. }
  2309. }
  2310. protected virtual void SendPropertyChanged(String propertyName)
  2311. {
  2312. if ((this.PropertyChanged != null))
  2313. {
  2314. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  2315. }
  2316. }
  2317. }
  2318. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Tags].BannedTags")]
  2319. public partial class BannedTag : INotifyPropertyChanging, INotifyPropertyChanged
  2320. {
  2321. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  2322. private int _Id;
  2323. private string _Name;
  2324. #region Extensibility Method Definitions
  2325. partial void OnLoaded();
  2326. partial void OnValidate(System.Data.Linq.ChangeAction action);
  2327. partial void OnCreated();
  2328. partial void OnIdChanging(int value);
  2329. partial void OnIdChanged();
  2330. partial void OnNameChanging(string value);
  2331. partial void OnNameChanged();
  2332. #endregion
  2333. public BannedTag()
  2334. {
  2335. OnCreated();
  2336. }
  2337. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  2338. public int Id
  2339. {
  2340. get
  2341. {
  2342. return this._Id;
  2343. }
  2344. set
  2345. {
  2346. if ((this._Id != value))
  2347. {
  2348. this.OnIdChanging(value);
  2349. this.SendPropertyChanging();
  2350. this._Id = value;
  2351. this.SendPropertyChanged("Id");
  2352. this.OnIdChanged();
  2353. }
  2354. }
  2355. }
  2356. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  2357. public string Name
  2358. {
  2359. get
  2360. {
  2361. return this._Name;
  2362. }
  2363. set
  2364. {
  2365. if ((this._Name != value))
  2366. {
  2367. this.OnNameChanging(value);
  2368. this.SendPropertyChanging();
  2369. this._Name = value;
  2370. this.SendPropertyChanged("Name");
  2371. this.OnNameChanged();
  2372. }
  2373. }
  2374. }
  2375. public event PropertyChangingEventHandler PropertyChanging;
  2376. public event PropertyChangedEventHandler PropertyChanged;
  2377. protected virtual void SendPropertyChanging()
  2378. {
  2379. if ((this.PropertyChanging != null))
  2380. {
  2381. this.PropertyChanging(this, emptyChangingEventArgs);
  2382. }
  2383. }
  2384. protected virtual void SendPropertyChanged(String propertyName)
  2385. {
  2386. if ((this.PropertyChanged != null))
  2387. {
  2388. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  2389. }
  2390. }
  2391. }
  2392. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Tags].SessionTags")]
  2393. public partial class SessionTag : INotifyPropertyChanging, INotifyPropertyChanged
  2394. {
  2395. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  2396. private int _Id;
  2397. private int _SessionId;
  2398. private int _TagId;
  2399. private EntityRef<Session> _Session;
  2400. private EntityRef<Tag> _Tag;
  2401. #region Extensibility Method Definitions
  2402. partial void OnLoaded();
  2403. partial void OnValidate(System.Data.Linq.ChangeAction action);
  2404. partial void OnCreated();
  2405. partial void OnIdChanging(int value);
  2406. partial void OnIdChanged();
  2407. partial void OnSessionIdChanging(int value);
  2408. partial void OnSessionIdChanged();
  2409. partial void OnTagIdChanging(int value);
  2410. partial void OnTagIdChanged();
  2411. #endregion
  2412. public SessionTag()
  2413. {
  2414. this._Session = default(EntityRef<Session>);
  2415. this._Tag = default(EntityRef<Tag>);
  2416. OnCreated();
  2417. }
  2418. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  2419. public int Id
  2420. {
  2421. get
  2422. {
  2423. return this._Id;
  2424. }
  2425. set
  2426. {
  2427. if ((this._Id != value))
  2428. {
  2429. this.OnIdChanging(value);
  2430. this.SendPropertyChanging();
  2431. this._Id = value;
  2432. this.SendPropertyChanged("Id");
  2433. this.OnIdChanged();
  2434. }
  2435. }
  2436. }
  2437. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionId", DbType="Int NOT NULL")]
  2438. public int SessionId
  2439. {
  2440. get
  2441. {
  2442. return this._SessionId;
  2443. }
  2444. set
  2445. {
  2446. if ((this._SessionId != value))
  2447. {
  2448. if (this._Session.HasLoadedOrAssignedValue)
  2449. {
  2450. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  2451. }
  2452. this.OnSessionIdChanging(value);
  2453. this.SendPropertyChanging();
  2454. this._SessionId = value;
  2455. this.SendPropertyChanged("SessionId");
  2456. this.OnSessionIdChanged();
  2457. }
  2458. }
  2459. }
  2460. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TagId", DbType="Int NOT NULL")]
  2461. public int TagId
  2462. {
  2463. get
  2464. {
  2465. return this._TagId;
  2466. }
  2467. set
  2468. {
  2469. if ((this._TagId != value))
  2470. {
  2471. if (this._Tag.HasLoadedOrAssignedValue)
  2472. {
  2473. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  2474. }
  2475. this.OnTagIdChanging(value);
  2476. this.SendPropertyChanging();
  2477. this._TagId = value;
  2478. this.SendPropertyChanged("TagId");
  2479. this.OnTagIdChanged();
  2480. }
  2481. }
  2482. }
  2483. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SessionTag", Storage="_Session", ThisKey="SessionId", OtherKey="Id", IsForeignKey=true)]
  2484. public Session Session
  2485. {
  2486. get
  2487. {
  2488. return this._Session.Entity;
  2489. }
  2490. set
  2491. {
  2492. Session previousValue = this._Session.Entity;
  2493. if (((previousValue != value)
  2494. || (this._Session.HasLoadedOrAssignedValue == false)))
  2495. {
  2496. this.SendPropertyChanging();
  2497. if ((previousValue != null))
  2498. {
  2499. this._Session.Entity = null;
  2500. previousValue.SessionTags.Remove(this);
  2501. }
  2502. this._Session.Entity = value;
  2503. if ((value != null))
  2504. {
  2505. value.SessionTags.Add(this);
  2506. this._SessionId = value.Id;
  2507. }
  2508. else
  2509. {
  2510. this._SessionId = default(int);
  2511. }
  2512. this.SendPropertyChanged("Session");
  2513. }
  2514. }
  2515. }
  2516. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Tag_SessionTag", Storage="_Tag", ThisKey="TagId", OtherKey="Id", IsForeignKey=true)]
  2517. public Tag Tag
  2518. {
  2519. get
  2520. {
  2521. return this._Tag.Entity;
  2522. }
  2523. set
  2524. {
  2525. Tag previousValue = this._Tag.Entity;
  2526. if (((previousValue != value)
  2527. || (this._Tag.HasLoadedOrAssignedValue == false)))
  2528. {
  2529. this.SendPropertyChanging();
  2530. if ((previousValue != null))
  2531. {
  2532. this._Tag.Entity = null;
  2533. previousValue.SessionTags.Remove(this);
  2534. }
  2535. this._Tag.Entity = value;
  2536. if ((value != null))
  2537. {
  2538. value.SessionTags.Add(this);
  2539. this._TagId = value.Id;
  2540. }
  2541. else
  2542. {
  2543. this._TagId = default(int);
  2544. }
  2545. this.SendPropertyChanged("Tag");
  2546. }
  2547. }
  2548. }
  2549. public event PropertyChangingEventHandler PropertyChanging;
  2550. public event PropertyChangedEventHandler PropertyChanged;
  2551. protected virtual void SendPropertyChanging()
  2552. {
  2553. if ((this.PropertyChanging != null))
  2554. {
  2555. this.PropertyChanging(this, emptyChangingEventArgs);
  2556. }
  2557. }
  2558. protected virtual void SendPropertyChanged(String propertyName)
  2559. {
  2560. if ((this.PropertyChanged != null))
  2561. {
  2562. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  2563. }
  2564. }
  2565. }
  2566. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Tags].Tags")]
  2567. public partial class Tag : INotifyPropertyChanging, INotifyPropertyChanged
  2568. {
  2569. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  2570. private int _Id;
  2571. private string _Name;
  2572. private int _EventId;
  2573. private EntitySet<SessionTag> _SessionTags;
  2574. private EntityRef<Event> _Event;
  2575. #region Extensibility Method Definitions
  2576. partial void OnLoaded();
  2577. partial void OnValidate(System.Data.Linq.ChangeAction action);
  2578. partial void OnCreated();
  2579. partial void OnIdChanging(int value);
  2580. partial void OnIdChanged();
  2581. partial void OnNameChanging(string value);
  2582. partial void OnNameChanged();
  2583. partial void OnEventIdChanging(int value);
  2584. partial void OnEventIdChanged();
  2585. #endregion
  2586. public Tag()
  2587. {
  2588. this._SessionTags = new EntitySet<SessionTag>(new Action<SessionTag>(this.attach_SessionTags), new Action<SessionTag>(this.detach_SessionTags));
  2589. this._Event = default(EntityRef<Event>);
  2590. OnCreated();
  2591. }
  2592. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  2593. public int Id
  2594. {
  2595. get
  2596. {
  2597. return this._Id;
  2598. }
  2599. set
  2600. {
  2601. if ((this._Id != value))
  2602. {
  2603. this.OnIdChanging(value);
  2604. this.SendPropertyChanging();
  2605. this._Id = value;
  2606. this.SendPropertyChanged("Id");
  2607. this.OnIdChanged();
  2608. }
  2609. }
  2610. }
  2611. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  2612. public string Name
  2613. {
  2614. get
  2615. {
  2616. return this._Name;
  2617. }
  2618. set
  2619. {
  2620. if ((this._Name != value))
  2621. {
  2622. this.OnNameChanging(value);
  2623. this.SendPropertyChanging();
  2624. this._Name = value;
  2625. this.SendPropertyChanged("Name");
  2626. this.OnNameChanged();
  2627. }
  2628. }
  2629. }
  2630. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
  2631. public int EventId
  2632. {
  2633. get
  2634. {
  2635. return this._EventId;
  2636. }
  2637. set
  2638. {
  2639. if ((this._EventId != value))
  2640. {
  2641. if (this._Event.HasLoadedOrAssignedValue)
  2642. {
  2643. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  2644. }
  2645. this.OnEventIdChanging(value);
  2646. this.SendPropertyChanging();
  2647. this._EventId = value;
  2648. this.SendPropertyChanged("EventId");
  2649. this.OnEventIdChanged();
  2650. }
  2651. }
  2652. }
  2653. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Tag_SessionTag", Storage="_SessionTags", ThisKey="Id", OtherKey="TagId")]
  2654. public EntitySet<SessionTag> SessionTags
  2655. {
  2656. get
  2657. {
  2658. return this._SessionTags;
  2659. }
  2660. set
  2661. {
  2662. this._SessionTags.Assign(value);
  2663. }
  2664. }
  2665. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Tag", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
  2666. public Event Event
  2667. {
  2668. get
  2669. {
  2670. return this._Event.Entity;
  2671. }
  2672. set
  2673. {
  2674. Event previousValue = this._Event.Entity;
  2675. if (((previousValue != value)
  2676. || (this._Event.HasLoadedOrAssignedValue == false)))
  2677. {
  2678. this.SendPropertyChanging();
  2679. if ((previousValue != null))
  2680. {
  2681. this._Event.Entity = null;
  2682. previousValue.Tags.Remove(this);
  2683. }
  2684. this._Event.Entity = value;
  2685. if ((value != null))
  2686. {
  2687. value.Tags.Add(this);
  2688. this._EventId = value.Id;
  2689. }
  2690. else
  2691. {
  2692. this._EventId = default(int);
  2693. }
  2694. this.SendPropertyChanged("Event");
  2695. }
  2696. }
  2697. }
  2698. public event PropertyChangingEventHandler PropertyChanging;
  2699. public event PropertyChangedEventHandler PropertyChanged;
  2700. protected virtual void SendPropertyChanging()
  2701. {
  2702. if ((this.PropertyChanging != null))
  2703. {
  2704. this.PropertyChanging(this, emptyChangingEventArgs);
  2705. }
  2706. }
  2707. protected virtual void SendPropertyChanged(String propertyName)
  2708. {
  2709. if ((this.PropertyChanged != null))
  2710. {
  2711. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  2712. }
  2713. }
  2714. private void attach_SessionTags(SessionTag entity)
  2715. {
  2716. this.SendPropertyChanging();
  2717. entity.Tag = this;
  2718. }
  2719. private void detach_SessionTags(SessionTag entity)
  2720. {
  2721. this.SendPropertyChanging();
  2722. entity.Tag = null;
  2723. }
  2724. }
  2725. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Volunteers].Tasks")]
  2726. public partial class Task : INotifyPropertyChanging, INotifyPropertyChanged
  2727. {
  2728. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  2729. private int _Id;
  2730. private int _EventId;
  2731. private string _Name;
  2732. private string _Notes;
  2733. private EntitySet<Tasks_Timeslot> _Tasks_Timeslots;
  2734. private EntityRef<Event> _Event;
  2735. #region Extensibility Method Definitions
  2736. partial void OnLoaded();
  2737. partial void OnValidate(System.Data.Linq.ChangeAction action);
  2738. partial void OnCreated();
  2739. partial void OnIdChanging(int value);
  2740. partial void OnIdChanged();
  2741. partial void OnEventIdChanging(int value);
  2742. partial void OnEventIdChanged();
  2743. partial void OnNameChanging(string value);
  2744. partial void OnNameChanged();
  2745. partial void OnNotesChanging(string value);
  2746. partial void OnNotesChanged();
  2747. #endregion
  2748. public Task()
  2749. {
  2750. this._Tasks_Timeslots = new EntitySet<Tasks_Timeslot>(new Action<Tasks_Timeslot>(this.attach_Tasks_Timeslots), new Action<Tasks_Timeslot>(this.detach_Tasks_Timeslots));
  2751. this._Event = default(EntityRef<Event>);
  2752. OnCreated();
  2753. }
  2754. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  2755. public int Id
  2756. {
  2757. get
  2758. {
  2759. return this._Id;
  2760. }
  2761. set
  2762. {
  2763. if ((this._Id != value))
  2764. {
  2765. this.OnIdChanging(value);
  2766. this.SendPropertyChanging();
  2767. this._Id = value;
  2768. this.SendPropertyChanged("Id");
  2769. this.OnIdChanged();
  2770. }
  2771. }
  2772. }
  2773. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
  2774. public int EventId
  2775. {
  2776. get
  2777. {
  2778. return this._EventId;
  2779. }
  2780. set
  2781. {
  2782. if ((this._EventId != value))
  2783. {
  2784. if (this._Event.HasLoadedOrAssignedValue)
  2785. {
  2786. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  2787. }
  2788. this.OnEventIdChanging(value);
  2789. this.SendPropertyChanging();
  2790. this._EventId = value;
  2791. this.SendPropertyChanged("EventId");
  2792. this.OnEventIdChanged();
  2793. }
  2794. }
  2795. }
  2796. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
  2797. public string Name
  2798. {
  2799. get
  2800. {
  2801. return this._Name;
  2802. }
  2803. set
  2804. {
  2805. if ((this._Name != value))
  2806. {
  2807. this.OnNameChanging(value);
  2808. this.SendPropertyChanging();
  2809. this._Name = value;
  2810. this.SendPropertyChanged("Name");
  2811. this.OnNameChanged();
  2812. }
  2813. }
  2814. }
  2815. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Notes", DbType="NVarChar(1024)")]
  2816. public string Notes
  2817. {
  2818. get
  2819. {
  2820. return this._Notes;
  2821. }
  2822. set
  2823. {
  2824. if ((this._Notes != value))
  2825. {
  2826. this.OnNotesChanging(value);
  2827. this.SendPropertyChanging();
  2828. this._Notes = value;
  2829. this.SendPropertyChanged("Notes");
  2830. this.OnNotesChanged();
  2831. }
  2832. }
  2833. }
  2834. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_Tasks_Timeslot", Storage="_Tasks_Timeslots", ThisKey="Id", OtherKey="Parent")]
  2835. public EntitySet<Tasks_Timeslot> Tasks_Timeslots
  2836. {
  2837. get
  2838. {
  2839. return this._Tasks_Timeslots;
  2840. }
  2841. set
  2842. {
  2843. this._Tasks_Timeslots.Assign(value);
  2844. }
  2845. }
  2846. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Task", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
  2847. public Event Event
  2848. {
  2849. get
  2850. {
  2851. return this._Event.Entity;
  2852. }
  2853. set
  2854. {
  2855. Event previousValue = this._Event.Entity;
  2856. if (((previousValue != value)
  2857. || (this._Event.HasLoadedOrAssignedValue == false)))
  2858. {
  2859. this.SendPropertyChanging();
  2860. if ((previousValue != null))
  2861. {
  2862. this._Event.Entity = null;
  2863. previousValue.Tasks.Remove(this);
  2864. }
  2865. this._Event.Entity = value;
  2866. if ((value != null))
  2867. {
  2868. value.Tasks.Add(this);
  2869. this._EventId = value.Id;
  2870. }
  2871. else
  2872. {
  2873. this._EventId = default(int);
  2874. }
  2875. this.SendPropertyChanged("Event");
  2876. }
  2877. }
  2878. }
  2879. public event PropertyChangingEventHandler PropertyChanging;
  2880. public event PropertyChangedEventHandler PropertyChanged;
  2881. protected virtual void SendPropertyChanging()
  2882. {
  2883. if ((this.PropertyChanging != null))
  2884. {
  2885. this.PropertyChanging(this, emptyChangingEventArgs);
  2886. }
  2887. }
  2888. protected virtual void SendPropertyChanged(String propertyName)
  2889. {
  2890. if ((this.PropertyChanged != null))
  2891. {
  2892. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  2893. }
  2894. }
  2895. private void attach_Tasks_Timeslots(Tasks_Timeslot entity)
  2896. {
  2897. this.SendPropertyChanging();
  2898. entity.Task = this;
  2899. }
  2900. private void detach_Tasks_Timeslots(Tasks_Timeslot entity)
  2901. {
  2902. this.SendPropertyChanging();
  2903. entity.Task = null;
  2904. }
  2905. }
  2906. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Volunteers].[Tasks.Timeslots]")]
  2907. public partial class Tasks_Timeslot : INotifyPropertyChanging, INotifyPropertyChanged
  2908. {
  2909. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  2910. private long _Id;
  2911. private int _Parent;
  2912. private int _Value;
  2913. private EntityRef<Task> _Task;
  2914. private EntityRef<TaskTimeslot> _TaskTimeslot;
  2915. #region Extensibility Method Definitions
  2916. partial void OnLoaded();
  2917. partial void OnValidate(System.Data.Linq.ChangeAction action);
  2918. partial void OnCreated();
  2919. partial void OnIdChanging(long value);
  2920. partial void OnIdChanged();
  2921. partial void OnParentChanging(int value);
  2922. partial void OnParentChanged();
  2923. partial void OnValueChanging(int value);
  2924. partial void OnValueChanged();
  2925. #endregion
  2926. public Tasks_Timeslot()
  2927. {
  2928. this._Task = default(EntityRef<Task>);
  2929. this._TaskTimeslot = default(EntityRef<TaskTimeslot>);
  2930. OnCreated();
  2931. }
  2932. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  2933. public long Id
  2934. {
  2935. get
  2936. {
  2937. return this._Id;
  2938. }
  2939. set
  2940. {
  2941. if ((this._Id != value))
  2942. {
  2943. this.OnIdChanging(value);
  2944. this.SendPropertyChanging();
  2945. this._Id = value;
  2946. this.SendPropertyChanged("Id");
  2947. this.OnIdChanged();
  2948. }
  2949. }
  2950. }
  2951. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Parent", DbType="Int NOT NULL")]
  2952. public int Parent
  2953. {
  2954. get
  2955. {
  2956. return this._Parent;
  2957. }
  2958. set
  2959. {
  2960. if ((this._Parent != value))
  2961. {
  2962. if (this._Task.HasLoadedOrAssignedValue)
  2963. {
  2964. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  2965. }
  2966. this.OnParentChanging(value);
  2967. this.SendPropertyChanging();
  2968. this._Parent = value;
  2969. this.SendPropertyChanged("Parent");
  2970. this.OnParentChanged();
  2971. }
  2972. }
  2973. }
  2974. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Value", DbType="Int NOT NULL")]
  2975. public int Value
  2976. {
  2977. get
  2978. {
  2979. return this._Value;
  2980. }
  2981. set
  2982. {
  2983. if ((this._Value != value))
  2984. {
  2985. if (this._TaskTimeslot.HasLoadedOrAssignedValue)
  2986. {
  2987. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  2988. }
  2989. this.OnValueChanging(value);
  2990. this.SendPropertyChanging();
  2991. this._Value = value;
  2992. this.SendPropertyChanged("Value");
  2993. this.OnValueChanged();
  2994. }
  2995. }
  2996. }
  2997. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_Tasks_Timeslot", Storage="_Task", ThisKey="Parent", OtherKey="Id", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
  2998. public Task Task
  2999. {
  3000. get
  3001. {
  3002. return this._Task.Entity;
  3003. }
  3004. set
  3005. {
  3006. Task previousValue = this._Task.Entity;
  3007. if (((previousValue != value)
  3008. || (this._Task.HasLoadedOrAssignedValue == false)))
  3009. {
  3010. this.SendPropertyChanging();
  3011. if ((previousValue != null))
  3012. {
  3013. this._Task.Entity = null;
  3014. previousValue.Tasks_Timeslots.Remove(this);
  3015. }
  3016. this._Task.Entity = value;
  3017. if ((value != null))
  3018. {
  3019. value.Tasks_Timeslots.Add(this);
  3020. this._Parent = value.Id;
  3021. }
  3022. else
  3023. {
  3024. this._Parent = default(int);
  3025. }
  3026. this.SendPropertyChanged("Task");
  3027. }
  3028. }
  3029. }
  3030. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="TaskTimeslot_Tasks_Timeslot", Storage="_TaskTimeslot", ThisKey="Value", OtherKey="Id", IsForeignKey=true)]
  3031. public TaskTimeslot TaskTimeslot
  3032. {
  3033. get
  3034. {
  3035. return this._TaskTimeslot.Entity;
  3036. }
  3037. set
  3038. {
  3039. TaskTimeslot previousValue = this._TaskTimeslot.Entity;
  3040. if (((previousValue != value)
  3041. || (this._TaskTimeslot.HasLoadedOrAssignedValue == false)))
  3042. {
  3043. this.SendPropertyChanging();
  3044. if ((previousValue != null))
  3045. {
  3046. this._TaskTimeslot.Entity = null;
  3047. previousValue.Tasks_Timeslots.Remove(this);
  3048. }
  3049. this._TaskTimeslot.Entity = value;
  3050. if ((value != null))
  3051. {
  3052. value.Tasks_Timeslots.Add(this);
  3053. this._Value = value.Id;
  3054. }
  3055. else
  3056. {
  3057. this._Value = default(int);
  3058. }
  3059. this.SendPropertyChanged("TaskTimeslot");
  3060. }
  3061. }
  3062. }
  3063. public event PropertyChangingEventHandler PropertyChanging;
  3064. public event PropertyChangedEventHandler PropertyChanged;
  3065. protected virtual void SendPropertyChanging()
  3066. {
  3067. if ((this.PropertyChanging != null))
  3068. {
  3069. this.PropertyChanging(this, emptyChangingEventArgs);
  3070. }
  3071. }
  3072. protected virtual void SendPropertyChanged(String propertyName)
  3073. {
  3074. if ((this.PropertyChanged != null))
  3075. {
  3076. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  3077. }
  3078. }
  3079. }
  3080. [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Volunteers].TaskTimeslots")]
  3081. public partial class TaskTimeslot : INotifyPropertyChanging, INotifyPropertyChanged
  3082. {
  3083. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  3084. private int _Id;
  3085. private System.DateTime _Date;
  3086. private System.TimeSpan _StartTime;
  3087. private System.TimeSpan _EndTime;
  3088. private int _VolunteersNeeded;
  3089. private EntitySet<Tasks_Timeslot> _Tasks_Timeslots;
  3090. #region Extensibility Method Definitions
  3091. partial void OnLoaded();
  3092. partial void OnValidate(System.Data.Linq.ChangeAction action);
  3093. partial void OnCreated();
  3094. partial void OnIdChanging(int value);
  3095. partial void OnIdChanged();
  3096. partial void OnDateChanging(System.DateTime value);
  3097. partial void OnDateChanged();
  3098. partial void OnStartTimeChanging(System.TimeSpan value);
  3099. partial void OnStartTimeChanged();
  3100. partial void OnEndTimeChanging(System.TimeSpan value);
  3101. partial void OnEndTimeChanged();
  3102. partial void OnVolunteersNeededChanging(int value);
  3103. partial void OnVolunteersNeededChanged();
  3104. #endregion
  3105. public TaskTimeslot()
  3106. {
  3107. this._Tasks_Timeslots = new EntitySet<Tasks_Timeslot>(new Action<Tasks_Timeslot>(this.attach_Tasks_Timeslots), new Action<Tasks_Timeslot>(this.detach_Tasks_Timeslots));
  3108. OnCreated();
  3109. }
  3110. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  3111. public int Id
  3112. {
  3113. get
  3114. {
  3115. return this._Id;
  3116. }
  3117. set
  3118. {
  3119. if ((this._Id != value))
  3120. {
  3121. this.OnIdChanging(value);
  3122. this.SendPropertyChanging();
  3123. this._Id = value;
  3124. this.SendPropertyChanged("Id");
  3125. this.OnIdChanged();
  3126. }
  3127. }
  3128. }
  3129. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Date", DbType="Date NOT NULL")]
  3130. public System.DateTime Date
  3131. {
  3132. get
  3133. {
  3134. return this._Date;
  3135. }
  3136. set
  3137. {
  3138. if ((this._Date != value))
  3139. {
  3140. this.OnDateChanging(value);
  3141. this.SendPropertyChanging();
  3142. this._Date = value;
  3143. this.SendPropertyChanged("Date");
  3144. this.OnDateChanged();
  3145. }
  3146. }
  3147. }
  3148. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartTime", DbType="Time NOT NULL")]
  3149. public System.TimeSpan StartTime
  3150. {
  3151. get
  3152. {
  3153. return this._StartTime;
  3154. }
  3155. set
  3156. {
  3157. if ((this._StartTime != value))
  3158. {
  3159. this.OnStartTimeChanging(value);
  3160. this.SendPropertyChanging();
  3161. this._StartTime = value;
  3162. this.SendPropertyChanged("StartTime");
  3163. this.OnStartTimeChanged();
  3164. }
  3165. }
  3166. }
  3167. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndTime", DbType="Time NOT NULL")]
  3168. public System.TimeSpan EndTime
  3169. {
  3170. get
  3171. {
  3172. return this._EndTime;
  3173. }
  3174. set
  3175. {
  3176. if ((this._EndTime != value))
  3177. {
  3178. this.OnEndTimeChanging(value);
  3179. this.SendPropertyChanging();
  3180. this._EndTime = value;
  3181. this.SendPropertyChanged("EndTime");
  3182. this.OnEndTimeChanged();
  3183. }
  3184. }
  3185. }
  3186. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VolunteersNeeded", DbType="Int NOT NULL")]
  3187. public int VolunteersNeeded
  3188. {
  3189. get
  3190. {
  3191. return this._VolunteersNeeded;
  3192. }
  3193. set
  3194. {
  3195. if ((this._VolunteersNeeded != value))
  3196. {
  3197. this.OnVolunteersNeededChanging(value);
  3198. this.SendPropertyChanging();
  3199. this._VolunteersNeeded = value;
  3200. this.SendPropertyChanged("VolunteersNeeded");
  3201. this.OnVolunteersNeededChanged();
  3202. }
  3203. }
  3204. }
  3205. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="TaskTimeslot_Tasks_Timeslot", Storage="_Tasks_Timeslots", ThisKey="Id", OtherKey="Value")]
  3206. public EntitySet<Tasks_Timeslot> Tasks_Timeslots
  3207. {
  3208. get
  3209. {
  3210. return this._Tasks_Timeslots;
  3211. }
  3212. set
  3213. {
  3214. this._Tasks_Timeslots.Assign(value);
  3215. }
  3216. }
  3217. public event PropertyChangingEventHandler PropertyChanging;
  3218. public event PropertyChangedEventHandler PropertyChanged;
  3219. protected virtual void SendPropertyChanging()
  3220. {
  3221. if ((this.PropertyChanging != null))
  3222. {
  3223. this.PropertyChanging(this, emptyChangingEventArgs);
  3224. }
  3225. }
  3226. protected virtual void SendPropertyChanged(String propertyName)
  3227. {
  3228. if ((this.PropertyChanged != null))
  3229. {
  3230. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  3231. }
  3232. }
  3233. private void attach_Tasks_Timeslots(Tasks_Timeslot entity)
  3234. {
  3235. this.SendPropertyChanging();
  3236. entity.TaskTimeslot = this;
  3237. }
  3238. private void detach_Tasks_Timeslots(Tasks_Timeslot entity)
  3239. {
  3240. this.SendPropertyChanging();
  3241. entity.TaskTimeslot = null;
  3242. }
  3243. }
  3244. }
  3245. #pragma warning restore 1591