/CodeCamp/CodeCamp/Controllers/CodeCampData01.designer.cs
C# | 3641 lines | 3236 code | 396 blank | 9 comment | 348 complexity | 4a82dbb8369d9adfab31049520c06467 MD5 | raw file
- #pragma warning disable 1591
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:4.0.30319.1
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
-
- namespace CodeCamp.Controllers
- {
- using System.Data.Linq;
- using System.Data.Linq.Mapping;
- using System.Data;
- using System.Collections.Generic;
- using System.Reflection;
- using System.Linq;
- using System.Linq.Expressions;
-
-
- [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="SQL2008_499609_pdxcodecamp")]
- public partial class CodeCampData01DataContext : System.Data.Linq.DataContext
- {
-
- private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
-
- #region Extensibility Method Definitions
- partial void OnCreated();
- partial void InsertPresenter(CodeCamp.Entities01.Presenter instance);
- partial void UpdatePresenter(CodeCamp.Entities01.Presenter instance);
- partial void DeletePresenter(CodeCamp.Entities01.Presenter instance);
- partial void InsertSessionPresenter(CodeCamp.Entities01.SessionPresenter instance);
- partial void UpdateSessionPresenter(CodeCamp.Entities01.SessionPresenter instance);
- partial void DeleteSessionPresenter(CodeCamp.Entities01.SessionPresenter instance);
- partial void InsertSession(CodeCamp.Entities01.Session instance);
- partial void UpdateSession(CodeCamp.Entities01.Session instance);
- partial void DeleteSession(CodeCamp.Entities01.Session instance);
- partial void InsertEvent(CodeCamp.Entities01.Event instance);
- partial void UpdateEvent(CodeCamp.Entities01.Event instance);
- partial void DeleteEvent(CodeCamp.Entities01.Event instance);
- partial void InsertCurrentVersion(CodeCamp.Entities01.CurrentVersion instance);
- partial void UpdateCurrentVersion(CodeCamp.Entities01.CurrentVersion instance);
- partial void DeleteCurrentVersion(CodeCamp.Entities01.CurrentVersion instance);
- partial void InsertSpeakerRateEvent(CodeCamp.Entities01.SpeakerRateEvent instance);
- partial void UpdateSpeakerRateEvent(CodeCamp.Entities01.SpeakerRateEvent instance);
- partial void DeleteSpeakerRateEvent(CodeCamp.Entities01.SpeakerRateEvent instance);
- partial void InsertSpeakerRateSpeaker(CodeCamp.Entities01.SpeakerRateSpeaker instance);
- partial void UpdateSpeakerRateSpeaker(CodeCamp.Entities01.SpeakerRateSpeaker instance);
- partial void DeleteSpeakerRateSpeaker(CodeCamp.Entities01.SpeakerRateSpeaker instance);
- partial void InsertSpeakerRateTalk(CodeCamp.Entities01.SpeakerRateTalk instance);
- partial void UpdateSpeakerRateTalk(CodeCamp.Entities01.SpeakerRateTalk instance);
- partial void DeleteSpeakerRateTalk(CodeCamp.Entities01.SpeakerRateTalk instance);
- partial void InsertCommunitySponsor(CodeCamp.Entities01.CommunitySponsor instance);
- partial void UpdateCommunitySponsor(CodeCamp.Entities01.CommunitySponsor instance);
- partial void DeleteCommunitySponsor(CodeCamp.Entities01.CommunitySponsor instance);
- partial void InsertIndividualContributor(CodeCamp.Entities01.IndividualContributor instance);
- partial void UpdateIndividualContributor(CodeCamp.Entities01.IndividualContributor instance);
- partial void DeleteIndividualContributor(CodeCamp.Entities01.IndividualContributor instance);
- partial void InsertSponsor(CodeCamp.Entities01.Sponsor instance);
- partial void UpdateSponsor(CodeCamp.Entities01.Sponsor instance);
- partial void DeleteSponsor(CodeCamp.Entities01.Sponsor instance);
- partial void InsertBannedTag(CodeCamp.Entities01.BannedTag instance);
- partial void UpdateBannedTag(CodeCamp.Entities01.BannedTag instance);
- partial void DeleteBannedTag(CodeCamp.Entities01.BannedTag instance);
- partial void InsertSessionTag(CodeCamp.Entities01.SessionTag instance);
- partial void UpdateSessionTag(CodeCamp.Entities01.SessionTag instance);
- partial void DeleteSessionTag(CodeCamp.Entities01.SessionTag instance);
- partial void InsertTag(CodeCamp.Entities01.Tag instance);
- partial void UpdateTag(CodeCamp.Entities01.Tag instance);
- partial void DeleteTag(CodeCamp.Entities01.Tag instance);
- partial void InsertTask(CodeCamp.Entities01.Task instance);
- partial void UpdateTask(CodeCamp.Entities01.Task instance);
- partial void DeleteTask(CodeCamp.Entities01.Task instance);
- partial void InsertTasks_Timeslot(CodeCamp.Entities01.Tasks_Timeslot instance);
- partial void UpdateTasks_Timeslot(CodeCamp.Entities01.Tasks_Timeslot instance);
- partial void DeleteTasks_Timeslot(CodeCamp.Entities01.Tasks_Timeslot instance);
- partial void InsertTaskTimeslot(CodeCamp.Entities01.TaskTimeslot instance);
- partial void UpdateTaskTimeslot(CodeCamp.Entities01.TaskTimeslot instance);
- partial void DeleteTaskTimeslot(CodeCamp.Entities01.TaskTimeslot instance);
- #endregion
-
- public CodeCampData01DataContext() :
- base(global::System.Configuration.ConfigurationManager.ConnectionStrings["CodeCampConnectionString"].ConnectionString, mappingSource)
- {
- OnCreated();
- }
-
- public CodeCampData01DataContext(string connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public CodeCampData01DataContext(System.Data.IDbConnection connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public CodeCampData01DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public CodeCampData01DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.Presenter> Presenters
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.Presenter>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.SessionPresenter> SessionPresenters
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.SessionPresenter>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.Session> Sessions
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.Session>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.Event> Events
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.Event>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.CurrentVersion> CurrentVersions
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.CurrentVersion>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.SpeakerRateEvent> SpeakerRateEvents
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.SpeakerRateEvent>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.SpeakerRateSpeaker> SpeakerRateSpeakers
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.SpeakerRateSpeaker>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.SpeakerRateTalk> SpeakerRateTalks
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.SpeakerRateTalk>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.CommunitySponsor> CommunitySponsors
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.CommunitySponsor>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.IndividualContributor> IndividualContributors
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.IndividualContributor>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.Sponsor> Sponsors
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.Sponsor>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.BannedTag> BannedTags
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.BannedTag>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.SessionTag> SessionTags
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.SessionTag>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.Tag> Tags
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.Tag>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.Task> Tasks
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.Task>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.Tasks_Timeslot> Tasks_Timeslots
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.Tasks_Timeslot>();
- }
- }
-
- public System.Data.Linq.Table<CodeCamp.Entities01.TaskTimeslot> TaskTimeslots
- {
- get
- {
- return this.GetTable<CodeCamp.Entities01.TaskTimeslot>();
- }
- }
- }
- }
- namespace CodeCamp.Entities01
- {
- using System.Data.Linq;
- using System.Data.Linq.Mapping;
- using System.ComponentModel;
- using System;
-
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Contents].Presenters")]
- public partial class Presenter : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _EventId;
-
- private string _UserIdentityName;
-
- private string _FirstName;
-
- private string _LastName;
-
- private string _TwitterName;
-
- private string _EmailAddress;
-
- private string _WebsiteUrl;
-
- private string _BlogUrl;
-
- private string _Biography;
-
- private string _ShirtSize;
-
- private EntitySet<SessionPresenter> _SessionPresenters;
-
- private EntitySet<SpeakerRateSpeaker> _SpeakerRateSpeakers;
-
- private EntityRef<Event> _Event;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnEventIdChanging(int value);
- partial void OnEventIdChanged();
- partial void OnUserIdentityNameChanging(string value);
- partial void OnUserIdentityNameChanged();
- partial void OnFirstNameChanging(string value);
- partial void OnFirstNameChanged();
- partial void OnLastNameChanging(string value);
- partial void OnLastNameChanged();
- partial void OnTwitterNameChanging(string value);
- partial void OnTwitterNameChanged();
- partial void OnEmailAddressChanging(string value);
- partial void OnEmailAddressChanged();
- partial void OnWebsiteUrlChanging(string value);
- partial void OnWebsiteUrlChanged();
- partial void OnBlogUrlChanging(string value);
- partial void OnBlogUrlChanged();
- partial void OnBiographyChanging(string value);
- partial void OnBiographyChanged();
- partial void OnShirtSizeChanging(string value);
- partial void OnShirtSizeChanged();
- #endregion
-
- public Presenter()
- {
- this._SessionPresenters = new EntitySet<SessionPresenter>(new Action<SessionPresenter>(this.attach_SessionPresenters), new Action<SessionPresenter>(this.detach_SessionPresenters));
- this._SpeakerRateSpeakers = new EntitySet<SpeakerRateSpeaker>(new Action<SpeakerRateSpeaker>(this.attach_SpeakerRateSpeakers), new Action<SpeakerRateSpeaker>(this.detach_SpeakerRateSpeakers));
- this._Event = default(EntityRef<Event>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
- public int EventId
- {
- get
- {
- return this._EventId;
- }
- set
- {
- if ((this._EventId != value))
- {
- if (this._Event.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnEventIdChanging(value);
- this.SendPropertyChanging();
- this._EventId = value;
- this.SendPropertyChanged("EventId");
- this.OnEventIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserIdentityName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string UserIdentityName
- {
- get
- {
- return this._UserIdentityName;
- }
- set
- {
- if ((this._UserIdentityName != value))
- {
- this.OnUserIdentityNameChanging(value);
- this.SendPropertyChanging();
- this._UserIdentityName = value;
- this.SendPropertyChanged("UserIdentityName");
- this.OnUserIdentityNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string FirstName
- {
- get
- {
- return this._FirstName;
- }
- set
- {
- if ((this._FirstName != value))
- {
- this.OnFirstNameChanging(value);
- this.SendPropertyChanging();
- this._FirstName = value;
- this.SendPropertyChanged("FirstName");
- this.OnFirstNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string LastName
- {
- get
- {
- return this._LastName;
- }
- set
- {
- if ((this._LastName != value))
- {
- this.OnLastNameChanging(value);
- this.SendPropertyChanging();
- this._LastName = value;
- this.SendPropertyChanged("LastName");
- this.OnLastNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TwitterName", DbType="NVarChar(128)")]
- public string TwitterName
- {
- get
- {
- return this._TwitterName;
- }
- set
- {
- if ((this._TwitterName != value))
- {
- this.OnTwitterNameChanging(value);
- this.SendPropertyChanging();
- this._TwitterName = value;
- this.SendPropertyChanged("TwitterName");
- this.OnTwitterNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmailAddress", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string EmailAddress
- {
- get
- {
- return this._EmailAddress;
- }
- set
- {
- if ((this._EmailAddress != value))
- {
- this.OnEmailAddressChanging(value);
- this.SendPropertyChanging();
- this._EmailAddress = value;
- this.SendPropertyChanged("EmailAddress");
- this.OnEmailAddressChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WebsiteUrl", DbType="NVarChar(1024)")]
- public string WebsiteUrl
- {
- get
- {
- return this._WebsiteUrl;
- }
- set
- {
- if ((this._WebsiteUrl != value))
- {
- this.OnWebsiteUrlChanging(value);
- this.SendPropertyChanging();
- this._WebsiteUrl = value;
- this.SendPropertyChanged("WebsiteUrl");
- this.OnWebsiteUrlChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BlogUrl", DbType="NVarChar(1024)")]
- public string BlogUrl
- {
- get
- {
- return this._BlogUrl;
- }
- set
- {
- if ((this._BlogUrl != value))
- {
- this.OnBlogUrlChanging(value);
- this.SendPropertyChanging();
- this._BlogUrl = value;
- this.SendPropertyChanged("BlogUrl");
- this.OnBlogUrlChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Biography", DbType="NVarChar(4000) NOT NULL", CanBeNull=false)]
- public string Biography
- {
- get
- {
- return this._Biography;
- }
- set
- {
- if ((this._Biography != value))
- {
- this.OnBiographyChanging(value);
- this.SendPropertyChanging();
- this._Biography = value;
- this.SendPropertyChanged("Biography");
- this.OnBiographyChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShirtSize", DbType="NVarChar(MAX)")]
- public string ShirtSize
- {
- get
- {
- return this._ShirtSize;
- }
- set
- {
- if ((this._ShirtSize != value))
- {
- this.OnShirtSizeChanging(value);
- this.SendPropertyChanging();
- this._ShirtSize = value;
- this.SendPropertyChanged("ShirtSize");
- this.OnShirtSizeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Presenter_SessionPresenter", Storage="_SessionPresenters", ThisKey="Id", OtherKey="PresenterId")]
- public EntitySet<SessionPresenter> SessionPresenters
- {
- get
- {
- return this._SessionPresenters;
- }
- set
- {
- this._SessionPresenters.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Presenter_SpeakerRateSpeaker", Storage="_SpeakerRateSpeakers", ThisKey="Id", OtherKey="PresenterId")]
- public EntitySet<SpeakerRateSpeaker> SpeakerRateSpeakers
- {
- get
- {
- return this._SpeakerRateSpeakers;
- }
- set
- {
- this._SpeakerRateSpeakers.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Presenter", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
- public Event Event
- {
- get
- {
- return this._Event.Entity;
- }
- set
- {
- Event previousValue = this._Event.Entity;
- if (((previousValue != value)
- || (this._Event.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Event.Entity = null;
- previousValue.Presenters.Remove(this);
- }
- this._Event.Entity = value;
- if ((value != null))
- {
- value.Presenters.Add(this);
- this._EventId = value.Id;
- }
- else
- {
- this._EventId = default(int);
- }
- this.SendPropertyChanged("Event");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
-
- private void attach_SessionPresenters(SessionPresenter entity)
- {
- this.SendPropertyChanging();
- entity.Presenter = this;
- }
-
- private void detach_SessionPresenters(SessionPresenter entity)
- {
- this.SendPropertyChanging();
- entity.Presenter = null;
- }
-
- private void attach_SpeakerRateSpeakers(SpeakerRateSpeaker entity)
- {
- this.SendPropertyChanging();
- entity.Presenter = this;
- }
-
- private void detach_SpeakerRateSpeakers(SpeakerRateSpeaker entity)
- {
- this.SendPropertyChanging();
- entity.Presenter = null;
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Contents].SessionPresenters")]
- public partial class SessionPresenter : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _SessionId;
-
- private int _PresenterId;
-
- private EntityRef<Presenter> _Presenter;
-
- private EntityRef<Session> _Session;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnSessionIdChanging(int value);
- partial void OnSessionIdChanged();
- partial void OnPresenterIdChanging(int value);
- partial void OnPresenterIdChanged();
- #endregion
-
- public SessionPresenter()
- {
- this._Presenter = default(EntityRef<Presenter>);
- this._Session = default(EntityRef<Session>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionId", DbType="Int NOT NULL")]
- public int SessionId
- {
- get
- {
- return this._SessionId;
- }
- set
- {
- if ((this._SessionId != value))
- {
- if (this._Session.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnSessionIdChanging(value);
- this.SendPropertyChanging();
- this._SessionId = value;
- this.SendPropertyChanged("SessionId");
- this.OnSessionIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PresenterId", DbType="Int NOT NULL")]
- public int PresenterId
- {
- get
- {
- return this._PresenterId;
- }
- set
- {
- if ((this._PresenterId != value))
- {
- if (this._Presenter.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnPresenterIdChanging(value);
- this.SendPropertyChanging();
- this._PresenterId = value;
- this.SendPropertyChanged("PresenterId");
- this.OnPresenterIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Presenter_SessionPresenter", Storage="_Presenter", ThisKey="PresenterId", OtherKey="Id", IsForeignKey=true)]
- public Presenter Presenter
- {
- get
- {
- return this._Presenter.Entity;
- }
- set
- {
- Presenter previousValue = this._Presenter.Entity;
- if (((previousValue != value)
- || (this._Presenter.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Presenter.Entity = null;
- previousValue.SessionPresenters.Remove(this);
- }
- this._Presenter.Entity = value;
- if ((value != null))
- {
- value.SessionPresenters.Add(this);
- this._PresenterId = value.Id;
- }
- else
- {
- this._PresenterId = default(int);
- }
- this.SendPropertyChanged("Presenter");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SessionPresenter", Storage="_Session", ThisKey="SessionId", OtherKey="Id", IsForeignKey=true)]
- public Session Session
- {
- get
- {
- return this._Session.Entity;
- }
- set
- {
- Session previousValue = this._Session.Entity;
- if (((previousValue != value)
- || (this._Session.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Session.Entity = null;
- previousValue.SessionPresenters.Remove(this);
- }
- this._Session.Entity = value;
- if ((value != null))
- {
- value.SessionPresenters.Add(this);
- this._SessionId = value.Id;
- }
- else
- {
- this._SessionId = default(int);
- }
- this.SendPropertyChanged("Session");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Contents].Sessions")]
- public partial class Session : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _EventId;
-
- private string _Title;
-
- private string _Description;
-
- private string _SessionMaterialsUrl;
-
- private EntitySet<SessionPresenter> _SessionPresenters;
-
- private EntitySet<SpeakerRateTalk> _SpeakerRateTalks;
-
- private EntitySet<SessionTag> _SessionTags;
-
- private EntityRef<Event> _Event;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnEventIdChanging(int value);
- partial void OnEventIdChanged();
- partial void OnTitleChanging(string value);
- partial void OnTitleChanged();
- partial void OnDescriptionChanging(string value);
- partial void OnDescriptionChanged();
- partial void OnSessionMaterialsUrlChanging(string value);
- partial void OnSessionMaterialsUrlChanged();
- #endregion
-
- public Session()
- {
- this._SessionPresenters = new EntitySet<SessionPresenter>(new Action<SessionPresenter>(this.attach_SessionPresenters), new Action<SessionPresenter>(this.detach_SessionPresenters));
- this._SpeakerRateTalks = new EntitySet<SpeakerRateTalk>(new Action<SpeakerRateTalk>(this.attach_SpeakerRateTalks), new Action<SpeakerRateTalk>(this.detach_SpeakerRateTalks));
- this._SessionTags = new EntitySet<SessionTag>(new Action<SessionTag>(this.attach_SessionTags), new Action<SessionTag>(this.detach_SessionTags));
- this._Event = default(EntityRef<Event>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
- public int EventId
- {
- get
- {
- return this._EventId;
- }
- set
- {
- if ((this._EventId != value))
- {
- if (this._Event.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnEventIdChanging(value);
- this.SendPropertyChanging();
- this._EventId = value;
- this.SendPropertyChanged("EventId");
- this.OnEventIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Title", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string Title
- {
- get
- {
- return this._Title;
- }
- set
- {
- if ((this._Title != value))
- {
- this.OnTitleChanging(value);
- this.SendPropertyChanging();
- this._Title = value;
- this.SendPropertyChanged("Title");
- this.OnTitleChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(4000) NOT NULL", CanBeNull=false)]
- public string Description
- {
- get
- {
- return this._Description;
- }
- set
- {
- if ((this._Description != value))
- {
- this.OnDescriptionChanging(value);
- this.SendPropertyChanging();
- this._Description = value;
- this.SendPropertyChanged("Description");
- this.OnDescriptionChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionMaterialsUrl", DbType="NVarChar(128)")]
- public string SessionMaterialsUrl
- {
- get
- {
- return this._SessionMaterialsUrl;
- }
- set
- {
- if ((this._SessionMaterialsUrl != value))
- {
- this.OnSessionMaterialsUrlChanging(value);
- this.SendPropertyChanging();
- this._SessionMaterialsUrl = value;
- this.SendPropertyChanged("SessionMaterialsUrl");
- this.OnSessionMaterialsUrlChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SessionPresenter", Storage="_SessionPresenters", ThisKey="Id", OtherKey="SessionId")]
- public EntitySet<SessionPresenter> SessionPresenters
- {
- get
- {
- return this._SessionPresenters;
- }
- set
- {
- this._SessionPresenters.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SpeakerRateTalk", Storage="_SpeakerRateTalks", ThisKey="Id", OtherKey="SessionId")]
- public EntitySet<SpeakerRateTalk> SpeakerRateTalks
- {
- get
- {
- return this._SpeakerRateTalks;
- }
- set
- {
- this._SpeakerRateTalks.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SessionTag", Storage="_SessionTags", ThisKey="Id", OtherKey="SessionId")]
- public EntitySet<SessionTag> SessionTags
- {
- get
- {
- return this._SessionTags;
- }
- set
- {
- this._SessionTags.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Session", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
- public Event Event
- {
- get
- {
- return this._Event.Entity;
- }
- set
- {
- Event previousValue = this._Event.Entity;
- if (((previousValue != value)
- || (this._Event.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Event.Entity = null;
- previousValue.Sessions.Remove(this);
- }
- this._Event.Entity = value;
- if ((value != null))
- {
- value.Sessions.Add(this);
- this._EventId = value.Id;
- }
- else
- {
- this._EventId = default(int);
- }
- this.SendPropertyChanged("Event");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
-
- private void attach_SessionPresenters(SessionPresenter entity)
- {
- this.SendPropertyChanging();
- entity.Session = this;
- }
-
- private void detach_SessionPresenters(SessionPresenter entity)
- {
- this.SendPropertyChanging();
- entity.Session = null;
- }
-
- private void attach_SpeakerRateTalks(SpeakerRateTalk entity)
- {
- this.SendPropertyChanging();
- entity.Session = this;
- }
-
- private void detach_SpeakerRateTalks(SpeakerRateTalk entity)
- {
- this.SendPropertyChanging();
- entity.Session = null;
- }
-
- private void attach_SessionTags(SessionTag entity)
- {
- this.SendPropertyChanging();
- entity.Session = this;
- }
-
- private void detach_SessionTags(SessionTag entity)
- {
- this.SendPropertyChanging();
- entity.Session = null;
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Events].Events")]
- public partial class Event : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private string _DisplayName;
-
- private string _ShortName;
-
- private EntitySet<Presenter> _Presenters;
-
- private EntitySet<Session> _Sessions;
-
- private EntitySet<SpeakerRateEvent> _SpeakerRateEvents;
-
- private EntitySet<CommunitySponsor> _CommunitySponsors;
-
- private EntitySet<IndividualContributor> _IndividualContributors;
-
- private EntitySet<Sponsor> _Sponsors;
-
- private EntitySet<Tag> _Tags;
-
- private EntitySet<Task> _Tasks;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnDisplayNameChanging(string value);
- partial void OnDisplayNameChanged();
- partial void OnShortNameChanging(string value);
- partial void OnShortNameChanged();
- #endregion
-
- public Event()
- {
- this._Presenters = new EntitySet<Presenter>(new Action<Presenter>(this.attach_Presenters), new Action<Presenter>(this.detach_Presenters));
- this._Sessions = new EntitySet<Session>(new Action<Session>(this.attach_Sessions), new Action<Session>(this.detach_Sessions));
- this._SpeakerRateEvents = new EntitySet<SpeakerRateEvent>(new Action<SpeakerRateEvent>(this.attach_SpeakerRateEvents), new Action<SpeakerRateEvent>(this.detach_SpeakerRateEvents));
- this._CommunitySponsors = new EntitySet<CommunitySponsor>(new Action<CommunitySponsor>(this.attach_CommunitySponsors), new Action<CommunitySponsor>(this.detach_CommunitySponsors));
- this._IndividualContributors = new EntitySet<IndividualContributor>(new Action<IndividualContributor>(this.attach_IndividualContributors), new Action<IndividualContributor>(this.detach_IndividualContributors));
- this._Sponsors = new EntitySet<Sponsor>(new Action<Sponsor>(this.attach_Sponsors), new Action<Sponsor>(this.detach_Sponsors));
- this._Tags = new EntitySet<Tag>(new Action<Tag>(this.attach_Tags), new Action<Tag>(this.detach_Tags));
- this._Tasks = new EntitySet<Task>(new Action<Task>(this.attach_Tasks), new Action<Task>(this.detach_Tasks));
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string DisplayName
- {
- get
- {
- return this._DisplayName;
- }
- set
- {
- if ((this._DisplayName != value))
- {
- this.OnDisplayNameChanging(value);
- this.SendPropertyChanging();
- this._DisplayName = value;
- this.SendPropertyChanged("DisplayName");
- this.OnDisplayNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShortName", DbType="NVarChar(32) NOT NULL", CanBeNull=false)]
- public string ShortName
- {
- get
- {
- return this._ShortName;
- }
- set
- {
- if ((this._ShortName != value))
- {
- this.OnShortNameChanging(value);
- this.SendPropertyChanging();
- this._ShortName = value;
- this.SendPropertyChanged("ShortName");
- this.OnShortNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Presenter", Storage="_Presenters", ThisKey="Id", OtherKey="EventId")]
- public EntitySet<Presenter> Presenters
- {
- get
- {
- return this._Presenters;
- }
- set
- {
- this._Presenters.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Session", Storage="_Sessions", ThisKey="Id", OtherKey="EventId")]
- public EntitySet<Session> Sessions
- {
- get
- {
- return this._Sessions;
- }
- set
- {
- this._Sessions.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_SpeakerRateEvent", Storage="_SpeakerRateEvents", ThisKey="Id", OtherKey="EventId")]
- public EntitySet<SpeakerRateEvent> SpeakerRateEvents
- {
- get
- {
- return this._SpeakerRateEvents;
- }
- set
- {
- this._SpeakerRateEvents.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_CommunitySponsor", Storage="_CommunitySponsors", ThisKey="Id", OtherKey="EventId")]
- public EntitySet<CommunitySponsor> CommunitySponsors
- {
- get
- {
- return this._CommunitySponsors;
- }
- set
- {
- this._CommunitySponsors.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_IndividualContributor", Storage="_IndividualContributors", ThisKey="Id", OtherKey="EventId")]
- public EntitySet<IndividualContributor> IndividualContributors
- {
- get
- {
- return this._IndividualContributors;
- }
- set
- {
- this._IndividualContributors.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Sponsor", Storage="_Sponsors", ThisKey="Id", OtherKey="EventId")]
- public EntitySet<Sponsor> Sponsors
- {
- get
- {
- return this._Sponsors;
- }
- set
- {
- this._Sponsors.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Tag", Storage="_Tags", ThisKey="Id", OtherKey="EventId")]
- public EntitySet<Tag> Tags
- {
- get
- {
- return this._Tags;
- }
- set
- {
- this._Tags.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Task", Storage="_Tasks", ThisKey="Id", OtherKey="EventId")]
- public EntitySet<Task> Tasks
- {
- get
- {
- return this._Tasks;
- }
- set
- {
- this._Tasks.Assign(value);
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
-
- private void attach_Presenters(Presenter entity)
- {
- this.SendPropertyChanging();
- entity.Event = this;
- }
-
- private void detach_Presenters(Presenter entity)
- {
- this.SendPropertyChanging();
- entity.Event = null;
- }
-
- private void attach_Sessions(Session entity)
- {
- this.SendPropertyChanging();
- entity.Event = this;
- }
-
- private void detach_Sessions(Session entity)
- {
- this.SendPropertyChanging();
- entity.Event = null;
- }
-
- private void attach_SpeakerRateEvents(SpeakerRateEvent entity)
- {
- this.SendPropertyChanging();
- entity.Event = this;
- }
-
- private void detach_SpeakerRateEvents(SpeakerRateEvent entity)
- {
- this.SendPropertyChanging();
- entity.Event = null;
- }
-
- private void attach_CommunitySponsors(CommunitySponsor entity)
- {
- this.SendPropertyChanging();
- entity.Event = this;
- }
-
- private void detach_CommunitySponsors(CommunitySponsor entity)
- {
- this.SendPropertyChanging();
- entity.Event = null;
- }
-
- private void attach_IndividualContributors(IndividualContributor entity)
- {
- this.SendPropertyChanging();
- entity.Event = this;
- }
-
- private void detach_IndividualContributors(IndividualContributor entity)
- {
- this.SendPropertyChanging();
- entity.Event = null;
- }
-
- private void attach_Sponsors(Sponsor entity)
- {
- this.SendPropertyChanging();
- entity.Event = this;
- }
-
- private void detach_Sponsors(Sponsor entity)
- {
- this.SendPropertyChanging();
- entity.Event = null;
- }
-
- private void attach_Tags(Tag entity)
- {
- this.SendPropertyChanging();
- entity.Event = this;
- }
-
- private void detach_Tags(Tag entity)
- {
- this.SendPropertyChanging();
- entity.Event = null;
- }
-
- private void attach_Tasks(Task entity)
- {
- this.SendPropertyChanging();
- entity.Event = this;
- }
-
- private void detach_Tasks(Task entity)
- {
- this.SendPropertyChanging();
- entity.Event = null;
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Schema].CurrentVersion")]
- public partial class CurrentVersion : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _VersionNumber;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnVersionNumberChanging(int value);
- partial void OnVersionNumberChanged();
- #endregion
-
- public CurrentVersion()
- {
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VersionNumber", DbType="Int NOT NULL")]
- public int VersionNumber
- {
- get
- {
- return this._VersionNumber;
- }
- set
- {
- if ((this._VersionNumber != value))
- {
- this.OnVersionNumberChanging(value);
- this.SendPropertyChanging();
- this._VersionNumber = value;
- this.SendPropertyChanged("VersionNumber");
- this.OnVersionNumberChanged();
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.SpeakerRate].SpeakerRateEvents")]
- public partial class SpeakerRateEvent : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _EventId;
-
- private string _EventUrl;
-
- private EntityRef<Event> _Event;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnEventIdChanging(int value);
- partial void OnEventIdChanged();
- partial void OnEventUrlChanging(string value);
- partial void OnEventUrlChanged();
- #endregion
-
- public SpeakerRateEvent()
- {
- this._Event = default(EntityRef<Event>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
- public int EventId
- {
- get
- {
- return this._EventId;
- }
- set
- {
- if ((this._EventId != value))
- {
- if (this._Event.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnEventIdChanging(value);
- this.SendPropertyChanging();
- this._EventId = value;
- this.SendPropertyChanged("EventId");
- this.OnEventIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventUrl", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
- public string EventUrl
- {
- get
- {
- return this._EventUrl;
- }
- set
- {
- if ((this._EventUrl != value))
- {
- this.OnEventUrlChanging(value);
- this.SendPropertyChanging();
- this._EventUrl = value;
- this.SendPropertyChanged("EventUrl");
- this.OnEventUrlChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_SpeakerRateEvent", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
- public Event Event
- {
- get
- {
- return this._Event.Entity;
- }
- set
- {
- Event previousValue = this._Event.Entity;
- if (((previousValue != value)
- || (this._Event.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Event.Entity = null;
- previousValue.SpeakerRateEvents.Remove(this);
- }
- this._Event.Entity = value;
- if ((value != null))
- {
- value.SpeakerRateEvents.Add(this);
- this._EventId = value.Id;
- }
- else
- {
- this._EventId = default(int);
- }
- this.SendPropertyChanged("Event");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.SpeakerRate].SpeakerRateSpeakers")]
- public partial class SpeakerRateSpeaker : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _PresenterId;
-
- private string _SpeakerUrl;
-
- private EntityRef<Presenter> _Presenter;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnPresenterIdChanging(int value);
- partial void OnPresenterIdChanged();
- partial void OnSpeakerUrlChanging(string value);
- partial void OnSpeakerUrlChanged();
- #endregion
-
- public SpeakerRateSpeaker()
- {
- this._Presenter = default(EntityRef<Presenter>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PresenterId", DbType="Int NOT NULL")]
- public int PresenterId
- {
- get
- {
- return this._PresenterId;
- }
- set
- {
- if ((this._PresenterId != value))
- {
- if (this._Presenter.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnPresenterIdChanging(value);
- this.SendPropertyChanging();
- this._PresenterId = value;
- this.SendPropertyChanged("PresenterId");
- this.OnPresenterIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpeakerUrl", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
- public string SpeakerUrl
- {
- get
- {
- return this._SpeakerUrl;
- }
- set
- {
- if ((this._SpeakerUrl != value))
- {
- this.OnSpeakerUrlChanging(value);
- this.SendPropertyChanging();
- this._SpeakerUrl = value;
- this.SendPropertyChanged("SpeakerUrl");
- this.OnSpeakerUrlChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Presenter_SpeakerRateSpeaker", Storage="_Presenter", ThisKey="PresenterId", OtherKey="Id", IsForeignKey=true)]
- public Presenter Presenter
- {
- get
- {
- return this._Presenter.Entity;
- }
- set
- {
- Presenter previousValue = this._Presenter.Entity;
- if (((previousValue != value)
- || (this._Presenter.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Presenter.Entity = null;
- previousValue.SpeakerRateSpeakers.Remove(this);
- }
- this._Presenter.Entity = value;
- if ((value != null))
- {
- value.SpeakerRateSpeakers.Add(this);
- this._PresenterId = value.Id;
- }
- else
- {
- this._PresenterId = default(int);
- }
- this.SendPropertyChanged("Presenter");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.SpeakerRate].SpeakerRateTalks")]
- public partial class SpeakerRateTalk : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _SessionId;
-
- private string _TalkUrl;
-
- private EntityRef<Session> _Session;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnSessionIdChanging(int value);
- partial void OnSessionIdChanged();
- partial void OnTalkUrlChanging(string value);
- partial void OnTalkUrlChanged();
- #endregion
-
- public SpeakerRateTalk()
- {
- this._Session = default(EntityRef<Session>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionId", DbType="Int NOT NULL")]
- public int SessionId
- {
- get
- {
- return this._SessionId;
- }
- set
- {
- if ((this._SessionId != value))
- {
- if (this._Session.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnSessionIdChanging(value);
- this.SendPropertyChanging();
- this._SessionId = value;
- this.SendPropertyChanged("SessionId");
- this.OnSessionIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TalkUrl", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
- public string TalkUrl
- {
- get
- {
- return this._TalkUrl;
- }
- set
- {
- if ((this._TalkUrl != value))
- {
- this.OnTalkUrlChanging(value);
- this.SendPropertyChanging();
- this._TalkUrl = value;
- this.SendPropertyChanged("TalkUrl");
- this.OnTalkUrlChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SpeakerRateTalk", Storage="_Session", ThisKey="SessionId", OtherKey="Id", IsForeignKey=true)]
- public Session Session
- {
- get
- {
- return this._Session.Entity;
- }
- set
- {
- Session previousValue = this._Session.Entity;
- if (((previousValue != value)
- || (this._Session.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Session.Entity = null;
- previousValue.SpeakerRateTalks.Remove(this);
- }
- this._Session.Entity = value;
- if ((value != null))
- {
- value.SpeakerRateTalks.Add(this);
- this._SessionId = value.Id;
- }
- else
- {
- this._SessionId = default(int);
- }
- this.SendPropertyChanged("Session");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Sponsors].CommunitySponsors")]
- public partial class CommunitySponsor : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _EventId;
-
- private string _Name;
-
- private string _Url;
-
- private EntityRef<Event> _Event;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnEventIdChanging(int value);
- partial void OnEventIdChanged();
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- partial void OnUrlChanging(string value);
- partial void OnUrlChanged();
- #endregion
-
- public CommunitySponsor()
- {
- this._Event = default(EntityRef<Event>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
- public int EventId
- {
- get
- {
- return this._EventId;
- }
- set
- {
- if ((this._EventId != value))
- {
- if (this._Event.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnEventIdChanging(value);
- this.SendPropertyChanging();
- this._EventId = value;
- this.SendPropertyChanged("EventId");
- this.OnEventIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- if ((this._Name != value))
- {
- this.OnNameChanging(value);
- this.SendPropertyChanging();
- this._Name = value;
- this.SendPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Url", DbType="NVarChar(1024) NOT NULL", CanBeNull=false)]
- public string Url
- {
- get
- {
- return this._Url;
- }
- set
- {
- if ((this._Url != value))
- {
- this.OnUrlChanging(value);
- this.SendPropertyChanging();
- this._Url = value;
- this.SendPropertyChanged("Url");
- this.OnUrlChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_CommunitySponsor", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
- public Event Event
- {
- get
- {
- return this._Event.Entity;
- }
- set
- {
- Event previousValue = this._Event.Entity;
- if (((previousValue != value)
- || (this._Event.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Event.Entity = null;
- previousValue.CommunitySponsors.Remove(this);
- }
- this._Event.Entity = value;
- if ((value != null))
- {
- value.CommunitySponsors.Add(this);
- this._EventId = value.Id;
- }
- else
- {
- this._EventId = default(int);
- }
- this.SendPropertyChanged("Event");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Sponsors].IndividualContributors")]
- public partial class IndividualContributor : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _EventId;
-
- private string _FirstName;
-
- private string _LastName;
-
- private EntityRef<Event> _Event;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnEventIdChanging(int value);
- partial void OnEventIdChanged();
- partial void OnFirstNameChanging(string value);
- partial void OnFirstNameChanged();
- partial void OnLastNameChanging(string value);
- partial void OnLastNameChanged();
- #endregion
-
- public IndividualContributor()
- {
- this._Event = default(EntityRef<Event>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
- public int EventId
- {
- get
- {
- return this._EventId;
- }
- set
- {
- if ((this._EventId != value))
- {
- if (this._Event.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnEventIdChanging(value);
- this.SendPropertyChanging();
- this._EventId = value;
- this.SendPropertyChanged("EventId");
- this.OnEventIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string FirstName
- {
- get
- {
- return this._FirstName;
- }
- set
- {
- if ((this._FirstName != value))
- {
- this.OnFirstNameChanging(value);
- this.SendPropertyChanging();
- this._FirstName = value;
- this.SendPropertyChanged("FirstName");
- this.OnFirstNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string LastName
- {
- get
- {
- return this._LastName;
- }
- set
- {
- if ((this._LastName != value))
- {
- this.OnLastNameChanging(value);
- this.SendPropertyChanging();
- this._LastName = value;
- this.SendPropertyChanged("LastName");
- this.OnLastNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_IndividualContributor", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
- public Event Event
- {
- get
- {
- return this._Event.Entity;
- }
- set
- {
- Event previousValue = this._Event.Entity;
- if (((previousValue != value)
- || (this._Event.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Event.Entity = null;
- previousValue.IndividualContributors.Remove(this);
- }
- this._Event.Entity = value;
- if ((value != null))
- {
- value.IndividualContributors.Add(this);
- this._EventId = value.Id;
- }
- else
- {
- this._EventId = default(int);
- }
- this.SendPropertyChanged("Event");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Sponsors].Sponsors")]
- public partial class Sponsor : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _EventId;
-
- private string _Name;
-
- private string _Url;
-
- private string _ImageUrl;
-
- private int _ImageHeight;
-
- private int _ImageWidth;
-
- private EntityRef<Event> _Event;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnEventIdChanging(int value);
- partial void OnEventIdChanged();
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- partial void OnUrlChanging(string value);
- partial void OnUrlChanged();
- partial void OnImageUrlChanging(string value);
- partial void OnImageUrlChanged();
- partial void OnImageHeightChanging(int value);
- partial void OnImageHeightChanged();
- partial void OnImageWidthChanging(int value);
- partial void OnImageWidthChanged();
- #endregion
-
- public Sponsor()
- {
- this._Event = default(EntityRef<Event>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
- public int EventId
- {
- get
- {
- return this._EventId;
- }
- set
- {
- if ((this._EventId != value))
- {
- if (this._Event.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnEventIdChanging(value);
- this.SendPropertyChanging();
- this._EventId = value;
- this.SendPropertyChanged("EventId");
- this.OnEventIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- if ((this._Name != value))
- {
- this.OnNameChanging(value);
- this.SendPropertyChanging();
- this._Name = value;
- this.SendPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Url", DbType="NVarChar(1024) NOT NULL", CanBeNull=false)]
- public string Url
- {
- get
- {
- return this._Url;
- }
- set
- {
- if ((this._Url != value))
- {
- this.OnUrlChanging(value);
- this.SendPropertyChanging();
- this._Url = value;
- this.SendPropertyChanged("Url");
- this.OnUrlChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImageUrl", DbType="NVarChar(1024) NOT NULL", CanBeNull=false)]
- public string ImageUrl
- {
- get
- {
- return this._ImageUrl;
- }
- set
- {
- if ((this._ImageUrl != value))
- {
- this.OnImageUrlChanging(value);
- this.SendPropertyChanging();
- this._ImageUrl = value;
- this.SendPropertyChanged("ImageUrl");
- this.OnImageUrlChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImageHeight", DbType="Int NOT NULL")]
- public int ImageHeight
- {
- get
- {
- return this._ImageHeight;
- }
- set
- {
- if ((this._ImageHeight != value))
- {
- this.OnImageHeightChanging(value);
- this.SendPropertyChanging();
- this._ImageHeight = value;
- this.SendPropertyChanged("ImageHeight");
- this.OnImageHeightChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImageWidth", DbType="Int NOT NULL")]
- public int ImageWidth
- {
- get
- {
- return this._ImageWidth;
- }
- set
- {
- if ((this._ImageWidth != value))
- {
- this.OnImageWidthChanging(value);
- this.SendPropertyChanging();
- this._ImageWidth = value;
- this.SendPropertyChanged("ImageWidth");
- this.OnImageWidthChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Sponsor", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
- public Event Event
- {
- get
- {
- return this._Event.Entity;
- }
- set
- {
- Event previousValue = this._Event.Entity;
- if (((previousValue != value)
- || (this._Event.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Event.Entity = null;
- previousValue.Sponsors.Remove(this);
- }
- this._Event.Entity = value;
- if ((value != null))
- {
- value.Sponsors.Add(this);
- this._EventId = value.Id;
- }
- else
- {
- this._EventId = default(int);
- }
- this.SendPropertyChanged("Event");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Tags].BannedTags")]
- public partial class BannedTag : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private string _Name;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- #endregion
-
- public BannedTag()
- {
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- if ((this._Name != value))
- {
- this.OnNameChanging(value);
- this.SendPropertyChanging();
- this._Name = value;
- this.SendPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Tags].SessionTags")]
- public partial class SessionTag : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _SessionId;
-
- private int _TagId;
-
- private EntityRef<Session> _Session;
-
- private EntityRef<Tag> _Tag;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnSessionIdChanging(int value);
- partial void OnSessionIdChanged();
- partial void OnTagIdChanging(int value);
- partial void OnTagIdChanged();
- #endregion
-
- public SessionTag()
- {
- this._Session = default(EntityRef<Session>);
- this._Tag = default(EntityRef<Tag>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionId", DbType="Int NOT NULL")]
- public int SessionId
- {
- get
- {
- return this._SessionId;
- }
- set
- {
- if ((this._SessionId != value))
- {
- if (this._Session.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnSessionIdChanging(value);
- this.SendPropertyChanging();
- this._SessionId = value;
- this.SendPropertyChanged("SessionId");
- this.OnSessionIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TagId", DbType="Int NOT NULL")]
- public int TagId
- {
- get
- {
- return this._TagId;
- }
- set
- {
- if ((this._TagId != value))
- {
- if (this._Tag.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnTagIdChanging(value);
- this.SendPropertyChanging();
- this._TagId = value;
- this.SendPropertyChanged("TagId");
- this.OnTagIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SessionTag", Storage="_Session", ThisKey="SessionId", OtherKey="Id", IsForeignKey=true)]
- public Session Session
- {
- get
- {
- return this._Session.Entity;
- }
- set
- {
- Session previousValue = this._Session.Entity;
- if (((previousValue != value)
- || (this._Session.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Session.Entity = null;
- previousValue.SessionTags.Remove(this);
- }
- this._Session.Entity = value;
- if ((value != null))
- {
- value.SessionTags.Add(this);
- this._SessionId = value.Id;
- }
- else
- {
- this._SessionId = default(int);
- }
- this.SendPropertyChanged("Session");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Tag_SessionTag", Storage="_Tag", ThisKey="TagId", OtherKey="Id", IsForeignKey=true)]
- public Tag Tag
- {
- get
- {
- return this._Tag.Entity;
- }
- set
- {
- Tag previousValue = this._Tag.Entity;
- if (((previousValue != value)
- || (this._Tag.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Tag.Entity = null;
- previousValue.SessionTags.Remove(this);
- }
- this._Tag.Entity = value;
- if ((value != null))
- {
- value.SessionTags.Add(this);
- this._TagId = value.Id;
- }
- else
- {
- this._TagId = default(int);
- }
- this.SendPropertyChanged("Tag");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Tags].Tags")]
- public partial class Tag : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private string _Name;
-
- private int _EventId;
-
- private EntitySet<SessionTag> _SessionTags;
-
- private EntityRef<Event> _Event;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- partial void OnEventIdChanging(int value);
- partial void OnEventIdChanged();
- #endregion
-
- public Tag()
- {
- this._SessionTags = new EntitySet<SessionTag>(new Action<SessionTag>(this.attach_SessionTags), new Action<SessionTag>(this.detach_SessionTags));
- this._Event = default(EntityRef<Event>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- if ((this._Name != value))
- {
- this.OnNameChanging(value);
- this.SendPropertyChanging();
- this._Name = value;
- this.SendPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
- public int EventId
- {
- get
- {
- return this._EventId;
- }
- set
- {
- if ((this._EventId != value))
- {
- if (this._Event.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnEventIdChanging(value);
- this.SendPropertyChanging();
- this._EventId = value;
- this.SendPropertyChanged("EventId");
- this.OnEventIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Tag_SessionTag", Storage="_SessionTags", ThisKey="Id", OtherKey="TagId")]
- public EntitySet<SessionTag> SessionTags
- {
- get
- {
- return this._SessionTags;
- }
- set
- {
- this._SessionTags.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Tag", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
- public Event Event
- {
- get
- {
- return this._Event.Entity;
- }
- set
- {
- Event previousValue = this._Event.Entity;
- if (((previousValue != value)
- || (this._Event.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Event.Entity = null;
- previousValue.Tags.Remove(this);
- }
- this._Event.Entity = value;
- if ((value != null))
- {
- value.Tags.Add(this);
- this._EventId = value.Id;
- }
- else
- {
- this._EventId = default(int);
- }
- this.SendPropertyChanged("Event");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
-
- private void attach_SessionTags(SessionTag entity)
- {
- this.SendPropertyChanging();
- entity.Tag = this;
- }
-
- private void detach_SessionTags(SessionTag entity)
- {
- this.SendPropertyChanging();
- entity.Tag = null;
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Volunteers].Tasks")]
- public partial class Task : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private int _EventId;
-
- private string _Name;
-
- private string _Notes;
-
- private EntitySet<Tasks_Timeslot> _Tasks_Timeslots;
-
- private EntityRef<Event> _Event;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnEventIdChanging(int value);
- partial void OnEventIdChanged();
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
- partial void OnNotesChanging(string value);
- partial void OnNotesChanged();
- #endregion
-
- public Task()
- {
- this._Tasks_Timeslots = new EntitySet<Tasks_Timeslot>(new Action<Tasks_Timeslot>(this.attach_Tasks_Timeslots), new Action<Tasks_Timeslot>(this.detach_Tasks_Timeslots));
- this._Event = default(EntityRef<Event>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
- public int EventId
- {
- get
- {
- return this._EventId;
- }
- set
- {
- if ((this._EventId != value))
- {
- if (this._Event.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnEventIdChanging(value);
- this.SendPropertyChanging();
- this._EventId = value;
- this.SendPropertyChanged("EventId");
- this.OnEventIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
- public string Name
- {
- get
- {
- return this._Name;
- }
- set
- {
- if ((this._Name != value))
- {
- this.OnNameChanging(value);
- this.SendPropertyChanging();
- this._Name = value;
- this.SendPropertyChanged("Name");
- this.OnNameChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Notes", DbType="NVarChar(1024)")]
- public string Notes
- {
- get
- {
- return this._Notes;
- }
- set
- {
- if ((this._Notes != value))
- {
- this.OnNotesChanging(value);
- this.SendPropertyChanging();
- this._Notes = value;
- this.SendPropertyChanged("Notes");
- this.OnNotesChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_Tasks_Timeslot", Storage="_Tasks_Timeslots", ThisKey="Id", OtherKey="Parent")]
- public EntitySet<Tasks_Timeslot> Tasks_Timeslots
- {
- get
- {
- return this._Tasks_Timeslots;
- }
- set
- {
- this._Tasks_Timeslots.Assign(value);
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Task", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
- public Event Event
- {
- get
- {
- return this._Event.Entity;
- }
- set
- {
- Event previousValue = this._Event.Entity;
- if (((previousValue != value)
- || (this._Event.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Event.Entity = null;
- previousValue.Tasks.Remove(this);
- }
- this._Event.Entity = value;
- if ((value != null))
- {
- value.Tasks.Add(this);
- this._EventId = value.Id;
- }
- else
- {
- this._EventId = default(int);
- }
- this.SendPropertyChanged("Event");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
-
- private void attach_Tasks_Timeslots(Tasks_Timeslot entity)
- {
- this.SendPropertyChanging();
- entity.Task = this;
- }
-
- private void detach_Tasks_Timeslots(Tasks_Timeslot entity)
- {
- this.SendPropertyChanging();
- entity.Task = null;
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Volunteers].[Tasks.Timeslots]")]
- public partial class Tasks_Timeslot : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private long _Id;
-
- private int _Parent;
-
- private int _Value;
-
- private EntityRef<Task> _Task;
-
- private EntityRef<TaskTimeslot> _TaskTimeslot;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(long value);
- partial void OnIdChanged();
- partial void OnParentChanging(int value);
- partial void OnParentChanged();
- partial void OnValueChanging(int value);
- partial void OnValueChanged();
- #endregion
-
- public Tasks_Timeslot()
- {
- this._Task = default(EntityRef<Task>);
- this._TaskTimeslot = default(EntityRef<TaskTimeslot>);
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public long Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Parent", DbType="Int NOT NULL")]
- public int Parent
- {
- get
- {
- return this._Parent;
- }
- set
- {
- if ((this._Parent != value))
- {
- if (this._Task.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnParentChanging(value);
- this.SendPropertyChanging();
- this._Parent = value;
- this.SendPropertyChanged("Parent");
- this.OnParentChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Value", DbType="Int NOT NULL")]
- public int Value
- {
- get
- {
- return this._Value;
- }
- set
- {
- if ((this._Value != value))
- {
- if (this._TaskTimeslot.HasLoadedOrAssignedValue)
- {
- throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
- }
- this.OnValueChanging(value);
- this.SendPropertyChanging();
- this._Value = value;
- this.SendPropertyChanged("Value");
- this.OnValueChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_Tasks_Timeslot", Storage="_Task", ThisKey="Parent", OtherKey="Id", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
- public Task Task
- {
- get
- {
- return this._Task.Entity;
- }
- set
- {
- Task previousValue = this._Task.Entity;
- if (((previousValue != value)
- || (this._Task.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._Task.Entity = null;
- previousValue.Tasks_Timeslots.Remove(this);
- }
- this._Task.Entity = value;
- if ((value != null))
- {
- value.Tasks_Timeslots.Add(this);
- this._Parent = value.Id;
- }
- else
- {
- this._Parent = default(int);
- }
- this.SendPropertyChanged("Task");
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="TaskTimeslot_Tasks_Timeslot", Storage="_TaskTimeslot", ThisKey="Value", OtherKey="Id", IsForeignKey=true)]
- public TaskTimeslot TaskTimeslot
- {
- get
- {
- return this._TaskTimeslot.Entity;
- }
- set
- {
- TaskTimeslot previousValue = this._TaskTimeslot.Entity;
- if (((previousValue != value)
- || (this._TaskTimeslot.HasLoadedOrAssignedValue == false)))
- {
- this.SendPropertyChanging();
- if ((previousValue != null))
- {
- this._TaskTimeslot.Entity = null;
- previousValue.Tasks_Timeslots.Remove(this);
- }
- this._TaskTimeslot.Entity = value;
- if ((value != null))
- {
- value.Tasks_Timeslots.Add(this);
- this._Value = value.Id;
- }
- else
- {
- this._Value = default(int);
- }
- this.SendPropertyChanged("TaskTimeslot");
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Volunteers].TaskTimeslots")]
- public partial class TaskTimeslot : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _Id;
-
- private System.DateTime _Date;
-
- private System.TimeSpan _StartTime;
-
- private System.TimeSpan _EndTime;
-
- private int _VolunteersNeeded;
-
- private EntitySet<Tasks_Timeslot> _Tasks_Timeslots;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnIdChanging(int value);
- partial void OnIdChanged();
- partial void OnDateChanging(System.DateTime value);
- partial void OnDateChanged();
- partial void OnStartTimeChanging(System.TimeSpan value);
- partial void OnStartTimeChanged();
- partial void OnEndTimeChanging(System.TimeSpan value);
- partial void OnEndTimeChanged();
- partial void OnVolunteersNeededChanging(int value);
- partial void OnVolunteersNeededChanged();
- #endregion
-
- public TaskTimeslot()
- {
- this._Tasks_Timeslots = new EntitySet<Tasks_Timeslot>(new Action<Tasks_Timeslot>(this.attach_Tasks_Timeslots), new Action<Tasks_Timeslot>(this.detach_Tasks_Timeslots));
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int Id
- {
- get
- {
- return this._Id;
- }
- set
- {
- if ((this._Id != value))
- {
- this.OnIdChanging(value);
- this.SendPropertyChanging();
- this._Id = value;
- this.SendPropertyChanged("Id");
- this.OnIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Date", DbType="Date NOT NULL")]
- public System.DateTime Date
- {
- get
- {
- return this._Date;
- }
- set
- {
- if ((this._Date != value))
- {
- this.OnDateChanging(value);
- this.SendPropertyChanging();
- this._Date = value;
- this.SendPropertyChanged("Date");
- this.OnDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartTime", DbType="Time NOT NULL")]
- public System.TimeSpan StartTime
- {
- get
- {
- return this._StartTime;
- }
- set
- {
- if ((this._StartTime != value))
- {
- this.OnStartTimeChanging(value);
- this.SendPropertyChanging();
- this._StartTime = value;
- this.SendPropertyChanged("StartTime");
- this.OnStartTimeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndTime", DbType="Time NOT NULL")]
- public System.TimeSpan EndTime
- {
- get
- {
- return this._EndTime;
- }
- set
- {
- if ((this._EndTime != value))
- {
- this.OnEndTimeChanging(value);
- this.SendPropertyChanging();
- this._EndTime = value;
- this.SendPropertyChanged("EndTime");
- this.OnEndTimeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VolunteersNeeded", DbType="Int NOT NULL")]
- public int VolunteersNeeded
- {
- get
- {
- return this._VolunteersNeeded;
- }
- set
- {
- if ((this._VolunteersNeeded != value))
- {
- this.OnVolunteersNeededChanging(value);
- this.SendPropertyChanging();
- this._VolunteersNeeded = value;
- this.SendPropertyChanged("VolunteersNeeded");
- this.OnVolunteersNeededChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.AssociationAttribute(Name="TaskTimeslot_Tasks_Timeslot", Storage="_Tasks_Timeslots", ThisKey="Id", OtherKey="Value")]
- public EntitySet<Tasks_Timeslot> Tasks_Timeslots
- {
- get
- {
- return this._Tasks_Timeslots;
- }
- set
- {
- this._Tasks_Timeslots.Assign(value);
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
-
- private void attach_Tasks_Timeslots(Tasks_Timeslot entity)
- {
- this.SendPropertyChanging();
- entity.TaskTimeslot = this;
- }
-
- private void detach_Tasks_Timeslots(Tasks_Timeslot entity)
- {
- this.SendPropertyChanging();
- entity.TaskTimeslot = null;
- }
- }
- }
- #pragma warning restore 1591