PageRenderTime 51ms CodeModel.GetById 22ms RepoModel.GetById 0ms 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

Large files files are truncated, but you can click here to view the full 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

Large files files are truncated, but you can click here to view the full file