PageRenderTime 9ms CodeModel.GetById 3ms app.highlight 55ms RepoModel.GetById 1ms app.codeStats 1ms

/CodeCamp/CodeCamp/Controllers/CodeCampData02.designer.cs

https://bitbucket.org/dsargent/codecamp
C# | 2066 lines | 1838 code | 219 blank | 9 comment | 198 complexity | 5a25a9ab645d45ab90aac733db352e64 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
  12namespace CodeCamp.Controllers
  13{
  14	using System.Data.Linq;
  15	using System.Data.Linq.Mapping;
  16	using System.Data;
  17	using System.Collections.Generic;
  18	using System.Reflection;
  19	using System.Linq;
  20	using System.Linq.Expressions;
  21	
  22	
  23	[global::System.Data.Linq.Mapping.DatabaseAttribute(Name="SQL2008_499609_pdxcodecamp")]
  24	public partial class CodeCampData02DataContext : System.Data.Linq.DataContext
  25	{
  26		
  27		private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
  28		
  29    #region Extensibility Method Definitions
  30    partial void OnCreated();
  31    partial void InsertBuilding(CodeCamp.Entities02.Building instance);
  32    partial void UpdateBuilding(CodeCamp.Entities02.Building instance);
  33    partial void DeleteBuilding(CodeCamp.Entities02.Building instance);
  34    partial void InsertRoom(CodeCamp.Entities02.Room instance);
  35    partial void UpdateRoom(CodeCamp.Entities02.Room instance);
  36    partial void DeleteRoom(CodeCamp.Entities02.Room instance);
  37    partial void InsertScheduledSession(CodeCamp.Entities02.ScheduledSession instance);
  38    partial void UpdateScheduledSession(CodeCamp.Entities02.ScheduledSession instance);
  39    partial void DeleteScheduledSession(CodeCamp.Entities02.ScheduledSession instance);
  40    partial void InsertTimeslot(CodeCamp.Entities02.Timeslot instance);
  41    partial void UpdateTimeslot(CodeCamp.Entities02.Timeslot instance);
  42    partial void DeleteTimeslot(CodeCamp.Entities02.Timeslot instance);
  43    partial void InsertEvent(CodeCamp.Entities02.Event instance);
  44    partial void UpdateEvent(CodeCamp.Entities02.Event instance);
  45    partial void DeleteEvent(CodeCamp.Entities02.Event instance);
  46    partial void InsertSession(CodeCamp.Entities02.Session instance);
  47    partial void UpdateSession(CodeCamp.Entities02.Session instance);
  48    partial void DeleteSession(CodeCamp.Entities02.Session instance);
  49    partial void InsertSessionPresenter(CodeCamp.Entities02.SessionPresenter instance);
  50    partial void UpdateSessionPresenter(CodeCamp.Entities02.SessionPresenter instance);
  51    partial void DeleteSessionPresenter(CodeCamp.Entities02.SessionPresenter instance);
  52    partial void InsertPresenter(CodeCamp.Entities02.Presenter instance);
  53    partial void UpdatePresenter(CodeCamp.Entities02.Presenter instance);
  54    partial void DeletePresenter(CodeCamp.Entities02.Presenter instance);
  55    #endregion
  56		
  57		public CodeCampData02DataContext() : 
  58				base(global::System.Configuration.ConfigurationManager.ConnectionStrings["CodeCampConnectionString"].ConnectionString, mappingSource)
  59		{
  60			OnCreated();
  61		}
  62		
  63		public CodeCampData02DataContext(string connection) : 
  64				base(connection, mappingSource)
  65		{
  66			OnCreated();
  67		}
  68		
  69		public CodeCampData02DataContext(System.Data.IDbConnection connection) : 
  70				base(connection, mappingSource)
  71		{
  72			OnCreated();
  73		}
  74		
  75		public CodeCampData02DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
  76				base(connection, mappingSource)
  77		{
  78			OnCreated();
  79		}
  80		
  81		public CodeCampData02DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
  82				base(connection, mappingSource)
  83		{
  84			OnCreated();
  85		}
  86		
  87		public System.Data.Linq.Table<CodeCamp.Entities02.Building> Buildings
  88		{
  89			get
  90			{
  91				return this.GetTable<CodeCamp.Entities02.Building>();
  92			}
  93		}
  94		
  95		public System.Data.Linq.Table<CodeCamp.Entities02.Room> Rooms
  96		{
  97			get
  98			{
  99				return this.GetTable<CodeCamp.Entities02.Room>();
 100			}
 101		}
 102		
 103		public System.Data.Linq.Table<CodeCamp.Entities02.ScheduledSession> ScheduledSessions
 104		{
 105			get
 106			{
 107				return this.GetTable<CodeCamp.Entities02.ScheduledSession>();
 108			}
 109		}
 110		
 111		public System.Data.Linq.Table<CodeCamp.Entities02.Timeslot> Timeslots
 112		{
 113			get
 114			{
 115				return this.GetTable<CodeCamp.Entities02.Timeslot>();
 116			}
 117		}
 118		
 119		public System.Data.Linq.Table<CodeCamp.Entities02.Event> Events
 120		{
 121			get
 122			{
 123				return this.GetTable<CodeCamp.Entities02.Event>();
 124			}
 125		}
 126		
 127		public System.Data.Linq.Table<CodeCamp.Entities02.Session> Sessions
 128		{
 129			get
 130			{
 131				return this.GetTable<CodeCamp.Entities02.Session>();
 132			}
 133		}
 134		
 135		public System.Data.Linq.Table<CodeCamp.Entities02.SessionPresenter> SessionPresenters
 136		{
 137			get
 138			{
 139				return this.GetTable<CodeCamp.Entities02.SessionPresenter>();
 140			}
 141		}
 142		
 143		public System.Data.Linq.Table<CodeCamp.Entities02.Presenter> Presenters
 144		{
 145			get
 146			{
 147				return this.GetTable<CodeCamp.Entities02.Presenter>();
 148			}
 149		}
 150	}
 151}
 152namespace CodeCamp.Entities02
 153{
 154	using System.Data.Linq;
 155	using System.Data.Linq.Mapping;
 156	using System.ComponentModel;
 157	using System;
 158	
 159	
 160	[global::System.Data.Linq.Mapping.TableAttribute(Name="CodeCamp02_Schedule.Buildings")]
 161	public partial class Building : INotifyPropertyChanging, INotifyPropertyChanged
 162	{
 163		
 164		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
 165		
 166		private int _Id;
 167		
 168		private int _EventId;
 169		
 170		private string _Name;
 171		
 172		private EntitySet<Room> _Rooms;
 173		
 174		private EntityRef<Event> _Event;
 175		
 176    #region Extensibility Method Definitions
 177    partial void OnLoaded();
 178    partial void OnValidate(System.Data.Linq.ChangeAction action);
 179    partial void OnCreated();
 180    partial void OnIdChanging(int value);
 181    partial void OnIdChanged();
 182    partial void OnEventIdChanging(int value);
 183    partial void OnEventIdChanged();
 184    partial void OnNameChanging(string value);
 185    partial void OnNameChanged();
 186    #endregion
 187		
 188		public Building()
 189		{
 190			this._Rooms = new EntitySet<Room>(new Action<Room>(this.attach_Rooms), new Action<Room>(this.detach_Rooms));
 191			this._Event = default(EntityRef<Event>);
 192			OnCreated();
 193		}
 194		
 195		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
 196		public int Id
 197		{
 198			get
 199			{
 200				return this._Id;
 201			}
 202			set
 203			{
 204				if ((this._Id != value))
 205				{
 206					this.OnIdChanging(value);
 207					this.SendPropertyChanging();
 208					this._Id = value;
 209					this.SendPropertyChanged("Id");
 210					this.OnIdChanged();
 211				}
 212			}
 213		}
 214		
 215		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
 216		public int EventId
 217		{
 218			get
 219			{
 220				return this._EventId;
 221			}
 222			set
 223			{
 224				if ((this._EventId != value))
 225				{
 226					if (this._Event.HasLoadedOrAssignedValue)
 227					{
 228						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
 229					}
 230					this.OnEventIdChanging(value);
 231					this.SendPropertyChanging();
 232					this._EventId = value;
 233					this.SendPropertyChanged("EventId");
 234					this.OnEventIdChanged();
 235				}
 236			}
 237		}
 238		
 239		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
 240		public string Name
 241		{
 242			get
 243			{
 244				return this._Name;
 245			}
 246			set
 247			{
 248				if ((this._Name != value))
 249				{
 250					this.OnNameChanging(value);
 251					this.SendPropertyChanging();
 252					this._Name = value;
 253					this.SendPropertyChanged("Name");
 254					this.OnNameChanged();
 255				}
 256			}
 257		}
 258		
 259		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Building_Room", Storage="_Rooms", ThisKey="Id", OtherKey="BuildingId")]
 260		public EntitySet<Room> Rooms
 261		{
 262			get
 263			{
 264				return this._Rooms;
 265			}
 266			set
 267			{
 268				this._Rooms.Assign(value);
 269			}
 270		}
 271		
 272		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Building", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
 273		public Event Event
 274		{
 275			get
 276			{
 277				return this._Event.Entity;
 278			}
 279			set
 280			{
 281				Event previousValue = this._Event.Entity;
 282				if (((previousValue != value) 
 283							|| (this._Event.HasLoadedOrAssignedValue == false)))
 284				{
 285					this.SendPropertyChanging();
 286					if ((previousValue != null))
 287					{
 288						this._Event.Entity = null;
 289						previousValue.Buildings.Remove(this);
 290					}
 291					this._Event.Entity = value;
 292					if ((value != null))
 293					{
 294						value.Buildings.Add(this);
 295						this._EventId = value.Id;
 296					}
 297					else
 298					{
 299						this._EventId = default(int);
 300					}
 301					this.SendPropertyChanged("Event");
 302				}
 303			}
 304		}
 305		
 306		public event PropertyChangingEventHandler PropertyChanging;
 307		
 308		public event PropertyChangedEventHandler PropertyChanged;
 309		
 310		protected virtual void SendPropertyChanging()
 311		{
 312			if ((this.PropertyChanging != null))
 313			{
 314				this.PropertyChanging(this, emptyChangingEventArgs);
 315			}
 316		}
 317		
 318		protected virtual void SendPropertyChanged(String propertyName)
 319		{
 320			if ((this.PropertyChanged != null))
 321			{
 322				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
 323			}
 324		}
 325		
 326		private void attach_Rooms(Room entity)
 327		{
 328			this.SendPropertyChanging();
 329			entity.Building = this;
 330		}
 331		
 332		private void detach_Rooms(Room entity)
 333		{
 334			this.SendPropertyChanging();
 335			entity.Building = null;
 336		}
 337	}
 338	
 339	[global::System.Data.Linq.Mapping.TableAttribute(Name="CodeCamp02_Schedule.Rooms")]
 340	public partial class Room : INotifyPropertyChanging, INotifyPropertyChanged
 341	{
 342		
 343		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
 344		
 345		private int _Id;
 346		
 347		private int _BuildingId;
 348		
 349		private string _Name;
 350		
 351		private EntitySet<ScheduledSession> _ScheduledSessions;
 352		
 353		private EntityRef<Building> _Building;
 354		
 355    #region Extensibility Method Definitions
 356    partial void OnLoaded();
 357    partial void OnValidate(System.Data.Linq.ChangeAction action);
 358    partial void OnCreated();
 359    partial void OnIdChanging(int value);
 360    partial void OnIdChanged();
 361    partial void OnBuildingIdChanging(int value);
 362    partial void OnBuildingIdChanged();
 363    partial void OnNameChanging(string value);
 364    partial void OnNameChanged();
 365    #endregion
 366		
 367		public Room()
 368		{
 369			this._ScheduledSessions = new EntitySet<ScheduledSession>(new Action<ScheduledSession>(this.attach_ScheduledSessions), new Action<ScheduledSession>(this.detach_ScheduledSessions));
 370			this._Building = default(EntityRef<Building>);
 371			OnCreated();
 372		}
 373		
 374		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
 375		public int Id
 376		{
 377			get
 378			{
 379				return this._Id;
 380			}
 381			set
 382			{
 383				if ((this._Id != value))
 384				{
 385					this.OnIdChanging(value);
 386					this.SendPropertyChanging();
 387					this._Id = value;
 388					this.SendPropertyChanged("Id");
 389					this.OnIdChanged();
 390				}
 391			}
 392		}
 393		
 394		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BuildingId", DbType="Int NOT NULL")]
 395		public int BuildingId
 396		{
 397			get
 398			{
 399				return this._BuildingId;
 400			}
 401			set
 402			{
 403				if ((this._BuildingId != value))
 404				{
 405					if (this._Building.HasLoadedOrAssignedValue)
 406					{
 407						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
 408					}
 409					this.OnBuildingIdChanging(value);
 410					this.SendPropertyChanging();
 411					this._BuildingId = value;
 412					this.SendPropertyChanged("BuildingId");
 413					this.OnBuildingIdChanged();
 414				}
 415			}
 416		}
 417		
 418		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
 419		public string Name
 420		{
 421			get
 422			{
 423				return this._Name;
 424			}
 425			set
 426			{
 427				if ((this._Name != value))
 428				{
 429					this.OnNameChanging(value);
 430					this.SendPropertyChanging();
 431					this._Name = value;
 432					this.SendPropertyChanged("Name");
 433					this.OnNameChanged();
 434				}
 435			}
 436		}
 437		
 438		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Room_ScheduledSession", Storage="_ScheduledSessions", ThisKey="Id", OtherKey="RoomId")]
 439		public EntitySet<ScheduledSession> ScheduledSessions
 440		{
 441			get
 442			{
 443				return this._ScheduledSessions;
 444			}
 445			set
 446			{
 447				this._ScheduledSessions.Assign(value);
 448			}
 449		}
 450		
 451		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Building_Room", Storage="_Building", ThisKey="BuildingId", OtherKey="Id", IsForeignKey=true)]
 452		public Building Building
 453		{
 454			get
 455			{
 456				return this._Building.Entity;
 457			}
 458			set
 459			{
 460				Building previousValue = this._Building.Entity;
 461				if (((previousValue != value) 
 462							|| (this._Building.HasLoadedOrAssignedValue == false)))
 463				{
 464					this.SendPropertyChanging();
 465					if ((previousValue != null))
 466					{
 467						this._Building.Entity = null;
 468						previousValue.Rooms.Remove(this);
 469					}
 470					this._Building.Entity = value;
 471					if ((value != null))
 472					{
 473						value.Rooms.Add(this);
 474						this._BuildingId = value.Id;
 475					}
 476					else
 477					{
 478						this._BuildingId = default(int);
 479					}
 480					this.SendPropertyChanged("Building");
 481				}
 482			}
 483		}
 484		
 485		public event PropertyChangingEventHandler PropertyChanging;
 486		
 487		public event PropertyChangedEventHandler PropertyChanged;
 488		
 489		protected virtual void SendPropertyChanging()
 490		{
 491			if ((this.PropertyChanging != null))
 492			{
 493				this.PropertyChanging(this, emptyChangingEventArgs);
 494			}
 495		}
 496		
 497		protected virtual void SendPropertyChanged(String propertyName)
 498		{
 499			if ((this.PropertyChanged != null))
 500			{
 501				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
 502			}
 503		}
 504		
 505		private void attach_ScheduledSessions(ScheduledSession entity)
 506		{
 507			this.SendPropertyChanging();
 508			entity.Room = this;
 509		}
 510		
 511		private void detach_ScheduledSessions(ScheduledSession entity)
 512		{
 513			this.SendPropertyChanging();
 514			entity.Room = null;
 515		}
 516	}
 517	
 518	[global::System.Data.Linq.Mapping.TableAttribute(Name="CodeCamp02_Schedule.ScheduledSessions")]
 519	public partial class ScheduledSession : INotifyPropertyChanging, INotifyPropertyChanged
 520	{
 521		
 522		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
 523		
 524		private int _Id;
 525		
 526		private int _SessionId;
 527		
 528		private int _TimeslotId;
 529		
 530		private int _RoomId;
 531		
 532		private EntityRef<Room> _Room;
 533		
 534		private EntityRef<Timeslot> _Timeslot;
 535		
 536		private EntityRef<Session> _Session;
 537		
 538    #region Extensibility Method Definitions
 539    partial void OnLoaded();
 540    partial void OnValidate(System.Data.Linq.ChangeAction action);
 541    partial void OnCreated();
 542    partial void OnIdChanging(int value);
 543    partial void OnIdChanged();
 544    partial void OnSessionIdChanging(int value);
 545    partial void OnSessionIdChanged();
 546    partial void OnTimeslotIdChanging(int value);
 547    partial void OnTimeslotIdChanged();
 548    partial void OnRoomIdChanging(int value);
 549    partial void OnRoomIdChanged();
 550    #endregion
 551		
 552		public ScheduledSession()
 553		{
 554			this._Room = default(EntityRef<Room>);
 555			this._Timeslot = default(EntityRef<Timeslot>);
 556			this._Session = default(EntityRef<Session>);
 557			OnCreated();
 558		}
 559		
 560		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
 561		public int Id
 562		{
 563			get
 564			{
 565				return this._Id;
 566			}
 567			set
 568			{
 569				if ((this._Id != value))
 570				{
 571					this.OnIdChanging(value);
 572					this.SendPropertyChanging();
 573					this._Id = value;
 574					this.SendPropertyChanged("Id");
 575					this.OnIdChanged();
 576				}
 577			}
 578		}
 579		
 580		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionId", DbType="Int NOT NULL")]
 581		public int SessionId
 582		{
 583			get
 584			{
 585				return this._SessionId;
 586			}
 587			set
 588			{
 589				if ((this._SessionId != value))
 590				{
 591					if (this._Session.HasLoadedOrAssignedValue)
 592					{
 593						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
 594					}
 595					this.OnSessionIdChanging(value);
 596					this.SendPropertyChanging();
 597					this._SessionId = value;
 598					this.SendPropertyChanged("SessionId");
 599					this.OnSessionIdChanged();
 600				}
 601			}
 602		}
 603		
 604		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TimeslotId", DbType="Int NOT NULL")]
 605		public int TimeslotId
 606		{
 607			get
 608			{
 609				return this._TimeslotId;
 610			}
 611			set
 612			{
 613				if ((this._TimeslotId != value))
 614				{
 615					if (this._Timeslot.HasLoadedOrAssignedValue)
 616					{
 617						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
 618					}
 619					this.OnTimeslotIdChanging(value);
 620					this.SendPropertyChanging();
 621					this._TimeslotId = value;
 622					this.SendPropertyChanged("TimeslotId");
 623					this.OnTimeslotIdChanged();
 624				}
 625			}
 626		}
 627		
 628		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoomId", DbType="Int NOT NULL")]
 629		public int RoomId
 630		{
 631			get
 632			{
 633				return this._RoomId;
 634			}
 635			set
 636			{
 637				if ((this._RoomId != value))
 638				{
 639					if (this._Room.HasLoadedOrAssignedValue)
 640					{
 641						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
 642					}
 643					this.OnRoomIdChanging(value);
 644					this.SendPropertyChanging();
 645					this._RoomId = value;
 646					this.SendPropertyChanged("RoomId");
 647					this.OnRoomIdChanged();
 648				}
 649			}
 650		}
 651		
 652		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Room_ScheduledSession", Storage="_Room", ThisKey="RoomId", OtherKey="Id", IsForeignKey=true)]
 653		public Room Room
 654		{
 655			get
 656			{
 657				return this._Room.Entity;
 658			}
 659			set
 660			{
 661				Room previousValue = this._Room.Entity;
 662				if (((previousValue != value) 
 663							|| (this._Room.HasLoadedOrAssignedValue == false)))
 664				{
 665					this.SendPropertyChanging();
 666					if ((previousValue != null))
 667					{
 668						this._Room.Entity = null;
 669						previousValue.ScheduledSessions.Remove(this);
 670					}
 671					this._Room.Entity = value;
 672					if ((value != null))
 673					{
 674						value.ScheduledSessions.Add(this);
 675						this._RoomId = value.Id;
 676					}
 677					else
 678					{
 679						this._RoomId = default(int);
 680					}
 681					this.SendPropertyChanged("Room");
 682				}
 683			}
 684		}
 685		
 686		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Timeslot_ScheduledSession", Storage="_Timeslot", ThisKey="TimeslotId", OtherKey="Id", IsForeignKey=true)]
 687		public Timeslot Timeslot
 688		{
 689			get
 690			{
 691				return this._Timeslot.Entity;
 692			}
 693			set
 694			{
 695				Timeslot previousValue = this._Timeslot.Entity;
 696				if (((previousValue != value) 
 697							|| (this._Timeslot.HasLoadedOrAssignedValue == false)))
 698				{
 699					this.SendPropertyChanging();
 700					if ((previousValue != null))
 701					{
 702						this._Timeslot.Entity = null;
 703						previousValue.ScheduledSessions.Remove(this);
 704					}
 705					this._Timeslot.Entity = value;
 706					if ((value != null))
 707					{
 708						value.ScheduledSessions.Add(this);
 709						this._TimeslotId = value.Id;
 710					}
 711					else
 712					{
 713						this._TimeslotId = default(int);
 714					}
 715					this.SendPropertyChanged("Timeslot");
 716				}
 717			}
 718		}
 719		
 720		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_ScheduledSession", Storage="_Session", ThisKey="SessionId", OtherKey="Id", IsForeignKey=true)]
 721		public Session Session
 722		{
 723			get
 724			{
 725				return this._Session.Entity;
 726			}
 727			set
 728			{
 729				Session previousValue = this._Session.Entity;
 730				if (((previousValue != value) 
 731							|| (this._Session.HasLoadedOrAssignedValue == false)))
 732				{
 733					this.SendPropertyChanging();
 734					if ((previousValue != null))
 735					{
 736						this._Session.Entity = null;
 737						previousValue.ScheduledSessions.Remove(this);
 738					}
 739					this._Session.Entity = value;
 740					if ((value != null))
 741					{
 742						value.ScheduledSessions.Add(this);
 743						this._SessionId = value.Id;
 744					}
 745					else
 746					{
 747						this._SessionId = default(int);
 748					}
 749					this.SendPropertyChanged("Session");
 750				}
 751			}
 752		}
 753		
 754		public event PropertyChangingEventHandler PropertyChanging;
 755		
 756		public event PropertyChangedEventHandler PropertyChanged;
 757		
 758		protected virtual void SendPropertyChanging()
 759		{
 760			if ((this.PropertyChanging != null))
 761			{
 762				this.PropertyChanging(this, emptyChangingEventArgs);
 763			}
 764		}
 765		
 766		protected virtual void SendPropertyChanged(String propertyName)
 767		{
 768			if ((this.PropertyChanged != null))
 769			{
 770				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
 771			}
 772		}
 773	}
 774	
 775	[global::System.Data.Linq.Mapping.TableAttribute(Name="CodeCamp02_Schedule.Timeslots")]
 776	public partial class Timeslot : INotifyPropertyChanging, INotifyPropertyChanged
 777	{
 778		
 779		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
 780		
 781		private int _Id;
 782		
 783		private int _EventId;
 784		
 785		private string _Name;
 786		
 787		private System.DateTime _Date;
 788		
 789		private System.TimeSpan _StartTime;
 790		
 791		private System.TimeSpan _EndTime;
 792		
 793		private EntitySet<ScheduledSession> _ScheduledSessions;
 794		
 795		private EntityRef<Event> _Event;
 796		
 797    #region Extensibility Method Definitions
 798    partial void OnLoaded();
 799    partial void OnValidate(System.Data.Linq.ChangeAction action);
 800    partial void OnCreated();
 801    partial void OnIdChanging(int value);
 802    partial void OnIdChanged();
 803    partial void OnEventIdChanging(int value);
 804    partial void OnEventIdChanged();
 805    partial void OnNameChanging(string value);
 806    partial void OnNameChanged();
 807    partial void OnDateChanging(System.DateTime value);
 808    partial void OnDateChanged();
 809    partial void OnStartTimeChanging(System.TimeSpan value);
 810    partial void OnStartTimeChanged();
 811    partial void OnEndTimeChanging(System.TimeSpan value);
 812    partial void OnEndTimeChanged();
 813    #endregion
 814		
 815		public Timeslot()
 816		{
 817			this._ScheduledSessions = new EntitySet<ScheduledSession>(new Action<ScheduledSession>(this.attach_ScheduledSessions), new Action<ScheduledSession>(this.detach_ScheduledSessions));
 818			this._Event = default(EntityRef<Event>);
 819			OnCreated();
 820		}
 821		
 822		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
 823		public int Id
 824		{
 825			get
 826			{
 827				return this._Id;
 828			}
 829			set
 830			{
 831				if ((this._Id != value))
 832				{
 833					this.OnIdChanging(value);
 834					this.SendPropertyChanging();
 835					this._Id = value;
 836					this.SendPropertyChanged("Id");
 837					this.OnIdChanged();
 838				}
 839			}
 840		}
 841		
 842		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
 843		public int EventId
 844		{
 845			get
 846			{
 847				return this._EventId;
 848			}
 849			set
 850			{
 851				if ((this._EventId != value))
 852				{
 853					if (this._Event.HasLoadedOrAssignedValue)
 854					{
 855						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
 856					}
 857					this.OnEventIdChanging(value);
 858					this.SendPropertyChanging();
 859					this._EventId = value;
 860					this.SendPropertyChanged("EventId");
 861					this.OnEventIdChanged();
 862				}
 863			}
 864		}
 865		
 866		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
 867		public string Name
 868		{
 869			get
 870			{
 871				return this._Name;
 872			}
 873			set
 874			{
 875				if ((this._Name != value))
 876				{
 877					this.OnNameChanging(value);
 878					this.SendPropertyChanging();
 879					this._Name = value;
 880					this.SendPropertyChanged("Name");
 881					this.OnNameChanged();
 882				}
 883			}
 884		}
 885		
 886		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Date", DbType="Date NOT NULL")]
 887		public System.DateTime Date
 888		{
 889			get
 890			{
 891				return this._Date;
 892			}
 893			set
 894			{
 895				if ((this._Date != value))
 896				{
 897					this.OnDateChanging(value);
 898					this.SendPropertyChanging();
 899					this._Date = value;
 900					this.SendPropertyChanged("Date");
 901					this.OnDateChanged();
 902				}
 903			}
 904		}
 905		
 906		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartTime", DbType="Time NOT NULL")]
 907		public System.TimeSpan StartTime
 908		{
 909			get
 910			{
 911				return this._StartTime;
 912			}
 913			set
 914			{
 915				if ((this._StartTime != value))
 916				{
 917					this.OnStartTimeChanging(value);
 918					this.SendPropertyChanging();
 919					this._StartTime = value;
 920					this.SendPropertyChanged("StartTime");
 921					this.OnStartTimeChanged();
 922				}
 923			}
 924		}
 925		
 926		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndTime", DbType="Time NOT NULL")]
 927		public System.TimeSpan EndTime
 928		{
 929			get
 930			{
 931				return this._EndTime;
 932			}
 933			set
 934			{
 935				if ((this._EndTime != value))
 936				{
 937					this.OnEndTimeChanging(value);
 938					this.SendPropertyChanging();
 939					this._EndTime = value;
 940					this.SendPropertyChanged("EndTime");
 941					this.OnEndTimeChanged();
 942				}
 943			}
 944		}
 945		
 946		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Timeslot_ScheduledSession", Storage="_ScheduledSessions", ThisKey="Id", OtherKey="TimeslotId")]
 947		public EntitySet<ScheduledSession> ScheduledSessions
 948		{
 949			get
 950			{
 951				return this._ScheduledSessions;
 952			}
 953			set
 954			{
 955				this._ScheduledSessions.Assign(value);
 956			}
 957		}
 958		
 959		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Timeslot", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
 960		public Event Event
 961		{
 962			get
 963			{
 964				return this._Event.Entity;
 965			}
 966			set
 967			{
 968				Event previousValue = this._Event.Entity;
 969				if (((previousValue != value) 
 970							|| (this._Event.HasLoadedOrAssignedValue == false)))
 971				{
 972					this.SendPropertyChanging();
 973					if ((previousValue != null))
 974					{
 975						this._Event.Entity = null;
 976						previousValue.Timeslots.Remove(this);
 977					}
 978					this._Event.Entity = value;
 979					if ((value != null))
 980					{
 981						value.Timeslots.Add(this);
 982						this._EventId = value.Id;
 983					}
 984					else
 985					{
 986						this._EventId = default(int);
 987					}
 988					this.SendPropertyChanged("Event");
 989				}
 990			}
 991		}
 992		
 993		public event PropertyChangingEventHandler PropertyChanging;
 994		
 995		public event PropertyChangedEventHandler PropertyChanged;
 996		
 997		protected virtual void SendPropertyChanging()
 998		{
 999			if ((this.PropertyChanging != null))
1000			{
1001				this.PropertyChanging(this, emptyChangingEventArgs);
1002			}
1003		}
1004		
1005		protected virtual void SendPropertyChanged(String propertyName)
1006		{
1007			if ((this.PropertyChanged != null))
1008			{
1009				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1010			}
1011		}
1012		
1013		private void attach_ScheduledSessions(ScheduledSession entity)
1014		{
1015			this.SendPropertyChanging();
1016			entity.Timeslot = this;
1017		}
1018		
1019		private void detach_ScheduledSessions(ScheduledSession entity)
1020		{
1021			this.SendPropertyChanging();
1022			entity.Timeslot = null;
1023		}
1024	}
1025	
1026	[global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Events].Events")]
1027	public partial class Event : INotifyPropertyChanging, INotifyPropertyChanged
1028	{
1029		
1030		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1031		
1032		private int _Id;
1033		
1034		private string _DisplayName;
1035		
1036		private string _ShortName;
1037		
1038		private EntitySet<Building> _Buildings;
1039		
1040		private EntitySet<Timeslot> _Timeslots;
1041		
1042		private EntitySet<Session> _Sessions;
1043		
1044		private EntitySet<Presenter> _Presenters;
1045		
1046    #region Extensibility Method Definitions
1047    partial void OnLoaded();
1048    partial void OnValidate(System.Data.Linq.ChangeAction action);
1049    partial void OnCreated();
1050    partial void OnIdChanging(int value);
1051    partial void OnIdChanged();
1052    partial void OnDisplayNameChanging(string value);
1053    partial void OnDisplayNameChanged();
1054    partial void OnShortNameChanging(string value);
1055    partial void OnShortNameChanged();
1056    #endregion
1057		
1058		public Event()
1059		{
1060			this._Buildings = new EntitySet<Building>(new Action<Building>(this.attach_Buildings), new Action<Building>(this.detach_Buildings));
1061			this._Timeslots = new EntitySet<Timeslot>(new Action<Timeslot>(this.attach_Timeslots), new Action<Timeslot>(this.detach_Timeslots));
1062			this._Sessions = new EntitySet<Session>(new Action<Session>(this.attach_Sessions), new Action<Session>(this.detach_Sessions));
1063			this._Presenters = new EntitySet<Presenter>(new Action<Presenter>(this.attach_Presenters), new Action<Presenter>(this.detach_Presenters));
1064			OnCreated();
1065		}
1066		
1067		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
1068		public int Id
1069		{
1070			get
1071			{
1072				return this._Id;
1073			}
1074			set
1075			{
1076				if ((this._Id != value))
1077				{
1078					this.OnIdChanging(value);
1079					this.SendPropertyChanging();
1080					this._Id = value;
1081					this.SendPropertyChanged("Id");
1082					this.OnIdChanged();
1083				}
1084			}
1085		}
1086		
1087		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisplayName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
1088		public string DisplayName
1089		{
1090			get
1091			{
1092				return this._DisplayName;
1093			}
1094			set
1095			{
1096				if ((this._DisplayName != value))
1097				{
1098					this.OnDisplayNameChanging(value);
1099					this.SendPropertyChanging();
1100					this._DisplayName = value;
1101					this.SendPropertyChanged("DisplayName");
1102					this.OnDisplayNameChanged();
1103				}
1104			}
1105		}
1106		
1107		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShortName", DbType="NVarChar(32) NOT NULL", CanBeNull=false)]
1108		public string ShortName
1109		{
1110			get
1111			{
1112				return this._ShortName;
1113			}
1114			set
1115			{
1116				if ((this._ShortName != value))
1117				{
1118					this.OnShortNameChanging(value);
1119					this.SendPropertyChanging();
1120					this._ShortName = value;
1121					this.SendPropertyChanged("ShortName");
1122					this.OnShortNameChanged();
1123				}
1124			}
1125		}
1126		
1127		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Building", Storage="_Buildings", ThisKey="Id", OtherKey="EventId")]
1128		public EntitySet<Building> Buildings
1129		{
1130			get
1131			{
1132				return this._Buildings;
1133			}
1134			set
1135			{
1136				this._Buildings.Assign(value);
1137			}
1138		}
1139		
1140		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Timeslot", Storage="_Timeslots", ThisKey="Id", OtherKey="EventId")]
1141		public EntitySet<Timeslot> Timeslots
1142		{
1143			get
1144			{
1145				return this._Timeslots;
1146			}
1147			set
1148			{
1149				this._Timeslots.Assign(value);
1150			}
1151		}
1152		
1153		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Session", Storage="_Sessions", ThisKey="Id", OtherKey="EventId")]
1154		public EntitySet<Session> Sessions
1155		{
1156			get
1157			{
1158				return this._Sessions;
1159			}
1160			set
1161			{
1162				this._Sessions.Assign(value);
1163			}
1164		}
1165		
1166		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Presenter", Storage="_Presenters", ThisKey="Id", OtherKey="EventId")]
1167		public EntitySet<Presenter> Presenters
1168		{
1169			get
1170			{
1171				return this._Presenters;
1172			}
1173			set
1174			{
1175				this._Presenters.Assign(value);
1176			}
1177		}
1178		
1179		public event PropertyChangingEventHandler PropertyChanging;
1180		
1181		public event PropertyChangedEventHandler PropertyChanged;
1182		
1183		protected virtual void SendPropertyChanging()
1184		{
1185			if ((this.PropertyChanging != null))
1186			{
1187				this.PropertyChanging(this, emptyChangingEventArgs);
1188			}
1189		}
1190		
1191		protected virtual void SendPropertyChanged(String propertyName)
1192		{
1193			if ((this.PropertyChanged != null))
1194			{
1195				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1196			}
1197		}
1198		
1199		private void attach_Buildings(Building entity)
1200		{
1201			this.SendPropertyChanging();
1202			entity.Event = this;
1203		}
1204		
1205		private void detach_Buildings(Building entity)
1206		{
1207			this.SendPropertyChanging();
1208			entity.Event = null;
1209		}
1210		
1211		private void attach_Timeslots(Timeslot entity)
1212		{
1213			this.SendPropertyChanging();
1214			entity.Event = this;
1215		}
1216		
1217		private void detach_Timeslots(Timeslot entity)
1218		{
1219			this.SendPropertyChanging();
1220			entity.Event = null;
1221		}
1222		
1223		private void attach_Sessions(Session entity)
1224		{
1225			this.SendPropertyChanging();
1226			entity.Event = this;
1227		}
1228		
1229		private void detach_Sessions(Session entity)
1230		{
1231			this.SendPropertyChanging();
1232			entity.Event = null;
1233		}
1234		
1235		private void attach_Presenters(Presenter entity)
1236		{
1237			this.SendPropertyChanging();
1238			entity.Event = this;
1239		}
1240		
1241		private void detach_Presenters(Presenter entity)
1242		{
1243			this.SendPropertyChanging();
1244			entity.Event = null;
1245		}
1246	}
1247	
1248	[global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Contents].Sessions")]
1249	public partial class Session : INotifyPropertyChanging, INotifyPropertyChanged
1250	{
1251		
1252		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1253		
1254		private int _Id;
1255		
1256		private int _EventId;
1257		
1258		private string _Title;
1259		
1260		private string _Description;
1261		
1262		private string _SessionMaterialsUrl;
1263		
1264		private EntitySet<ScheduledSession> _ScheduledSessions;
1265		
1266		private EntitySet<SessionPresenter> _SessionPresenters;
1267		
1268		private EntityRef<Event> _Event;
1269		
1270    #region Extensibility Method Definitions
1271    partial void OnLoaded();
1272    partial void OnValidate(System.Data.Linq.ChangeAction action);
1273    partial void OnCreated();
1274    partial void OnIdChanging(int value);
1275    partial void OnIdChanged();
1276    partial void OnEventIdChanging(int value);
1277    partial void OnEventIdChanged();
1278    partial void OnTitleChanging(string value);
1279    partial void OnTitleChanged();
1280    partial void OnDescriptionChanging(string value);
1281    partial void OnDescriptionChanged();
1282    partial void OnSessionMaterialsUrlChanging(string value);
1283    partial void OnSessionMaterialsUrlChanged();
1284    #endregion
1285		
1286		public Session()
1287		{
1288			this._ScheduledSessions = new EntitySet<ScheduledSession>(new Action<ScheduledSession>(this.attach_ScheduledSessions), new Action<ScheduledSession>(this.detach_ScheduledSessions));
1289			this._SessionPresenters = new EntitySet<SessionPresenter>(new Action<SessionPresenter>(this.attach_SessionPresenters), new Action<SessionPresenter>(this.detach_SessionPresenters));
1290			this._Event = default(EntityRef<Event>);
1291			OnCreated();
1292		}
1293		
1294		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
1295		public int Id
1296		{
1297			get
1298			{
1299				return this._Id;
1300			}
1301			set
1302			{
1303				if ((this._Id != value))
1304				{
1305					this.OnIdChanging(value);
1306					this.SendPropertyChanging();
1307					this._Id = value;
1308					this.SendPropertyChanged("Id");
1309					this.OnIdChanged();
1310				}
1311			}
1312		}
1313		
1314		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
1315		public int EventId
1316		{
1317			get
1318			{
1319				return this._EventId;
1320			}
1321			set
1322			{
1323				if ((this._EventId != value))
1324				{
1325					if (this._Event.HasLoadedOrAssignedValue)
1326					{
1327						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1328					}
1329					this.OnEventIdChanging(value);
1330					this.SendPropertyChanging();
1331					this._EventId = value;
1332					this.SendPropertyChanged("EventId");
1333					this.OnEventIdChanged();
1334				}
1335			}
1336		}
1337		
1338		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Title", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
1339		public string Title
1340		{
1341			get
1342			{
1343				return this._Title;
1344			}
1345			set
1346			{
1347				if ((this._Title != value))
1348				{
1349					this.OnTitleChanging(value);
1350					this.SendPropertyChanging();
1351					this._Title = value;
1352					this.SendPropertyChanged("Title");
1353					this.OnTitleChanged();
1354				}
1355			}
1356		}
1357		
1358		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(4000) NOT NULL", CanBeNull=false)]
1359		public string Description
1360		{
1361			get
1362			{
1363				return this._Description;
1364			}
1365			set
1366			{
1367				if ((this._Description != value))
1368				{
1369					this.OnDescriptionChanging(value);
1370					this.SendPropertyChanging();
1371					this._Description = value;
1372					this.SendPropertyChanged("Description");
1373					this.OnDescriptionChanged();
1374				}
1375			}
1376		}
1377		
1378		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionMaterialsUrl", DbType="NVarChar(128)")]
1379		public string SessionMaterialsUrl
1380		{
1381			get
1382			{
1383				return this._SessionMaterialsUrl;
1384			}
1385			set
1386			{
1387				if ((this._SessionMaterialsUrl != value))
1388				{
1389					this.OnSessionMaterialsUrlChanging(value);
1390					this.SendPropertyChanging();
1391					this._SessionMaterialsUrl = value;
1392					this.SendPropertyChanged("SessionMaterialsUrl");
1393					this.OnSessionMaterialsUrlChanged();
1394				}
1395			}
1396		}
1397		
1398		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_ScheduledSession", Storage="_ScheduledSessions", ThisKey="Id", OtherKey="SessionId")]
1399		public EntitySet<ScheduledSession> ScheduledSessions
1400		{
1401			get
1402			{
1403				return this._ScheduledSessions;
1404			}
1405			set
1406			{
1407				this._ScheduledSessions.Assign(value);
1408			}
1409		}
1410		
1411		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SessionPresenter", Storage="_SessionPresenters", ThisKey="Id", OtherKey="SessionId")]
1412		public EntitySet<SessionPresenter> SessionPresenters
1413		{
1414			get
1415			{
1416				return this._SessionPresenters;
1417			}
1418			set
1419			{
1420				this._SessionPresenters.Assign(value);
1421			}
1422		}
1423		
1424		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Event_Session", Storage="_Event", ThisKey="EventId", OtherKey="Id", IsForeignKey=true)]
1425		public Event Event
1426		{
1427			get
1428			{
1429				return this._Event.Entity;
1430			}
1431			set
1432			{
1433				Event previousValue = this._Event.Entity;
1434				if (((previousValue != value) 
1435							|| (this._Event.HasLoadedOrAssignedValue == false)))
1436				{
1437					this.SendPropertyChanging();
1438					if ((previousValue != null))
1439					{
1440						this._Event.Entity = null;
1441						previousValue.Sessions.Remove(this);
1442					}
1443					this._Event.Entity = value;
1444					if ((value != null))
1445					{
1446						value.Sessions.Add(this);
1447						this._EventId = value.Id;
1448					}
1449					else
1450					{
1451						this._EventId = default(int);
1452					}
1453					this.SendPropertyChanged("Event");
1454				}
1455			}
1456		}
1457		
1458		public event PropertyChangingEventHandler PropertyChanging;
1459		
1460		public event PropertyChangedEventHandler PropertyChanged;
1461		
1462		protected virtual void SendPropertyChanging()
1463		{
1464			if ((this.PropertyChanging != null))
1465			{
1466				this.PropertyChanging(this, emptyChangingEventArgs);
1467			}
1468		}
1469		
1470		protected virtual void SendPropertyChanged(String propertyName)
1471		{
1472			if ((this.PropertyChanged != null))
1473			{
1474				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1475			}
1476		}
1477		
1478		private void attach_ScheduledSessions(ScheduledSession entity)
1479		{
1480			this.SendPropertyChanging();
1481			entity.Session = this;
1482		}
1483		
1484		private void detach_ScheduledSessions(ScheduledSession entity)
1485		{
1486			this.SendPropertyChanging();
1487			entity.Session = null;
1488		}
1489		
1490		private void attach_SessionPresenters(SessionPresenter entity)
1491		{
1492			this.SendPropertyChanging();
1493			entity.Session = this;
1494		}
1495		
1496		private void detach_SessionPresenters(SessionPresenter entity)
1497		{
1498			this.SendPropertyChanging();
1499			entity.Session = null;
1500		}
1501	}
1502	
1503	[global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Contents].SessionPresenters")]
1504	public partial class SessionPresenter : INotifyPropertyChanging, INotifyPropertyChanged
1505	{
1506		
1507		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1508		
1509		private int _Id;
1510		
1511		private int _SessionId;
1512		
1513		private int _PresenterId;
1514		
1515		private EntityRef<Session> _Session;
1516		
1517		private EntityRef<Presenter> _Presenter;
1518		
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 OnSessionIdChanging(int value);
1526    partial void OnSessionIdChanged();
1527    partial void OnPresenterIdChanging(int value);
1528    partial void OnPresenterIdChanged();
1529    #endregion
1530		
1531		public SessionPresenter()
1532		{
1533			this._Session = default(EntityRef<Session>);
1534			this._Presenter = default(EntityRef<Presenter>);
1535			OnCreated();
1536		}
1537		
1538		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
1539		public int Id
1540		{
1541			get
1542			{
1543				return this._Id;
1544			}
1545			set
1546			{
1547				if ((this._Id != value))
1548				{
1549					this.OnIdChanging(value);
1550					this.SendPropertyChanging();
1551					this._Id = value;
1552					this.SendPropertyChanged("Id");
1553					this.OnIdChanged();
1554				}
1555			}
1556		}
1557		
1558		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SessionId", DbType="Int NOT NULL")]
1559		public int SessionId
1560		{
1561			get
1562			{
1563				return this._SessionId;
1564			}
1565			set
1566			{
1567				if ((this._SessionId != value))
1568				{
1569					if (this._Session.HasLoadedOrAssignedValue)
1570					{
1571						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1572					}
1573					this.OnSessionIdChanging(value);
1574					this.SendPropertyChanging();
1575					this._SessionId = value;
1576					this.SendPropertyChanged("SessionId");
1577					this.OnSessionIdChanged();
1578				}
1579			}
1580		}
1581		
1582		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PresenterId", DbType="Int NOT NULL")]
1583		public int PresenterId
1584		{
1585			get
1586			{
1587				return this._PresenterId;
1588			}
1589			set
1590			{
1591				if ((this._PresenterId != value))
1592				{
1593					if (this._Presenter.HasLoadedOrAssignedValue)
1594					{
1595						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1596					}
1597					this.OnPresenterIdChanging(value);
1598					this.SendPropertyChanging();
1599					this._PresenterId = value;
1600					this.SendPropertyChanged("PresenterId");
1601					this.OnPresenterIdChanged();
1602				}
1603			}
1604		}
1605		
1606		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Session_SessionPresenter", Storage="_Session", ThisKey="SessionId", OtherKey="Id", IsForeignKey=true)]
1607		public Session Session
1608		{
1609			get
1610			{
1611				return this._Session.Entity;
1612			}
1613			set
1614			{
1615				Session previousValue = this._Session.Entity;
1616				if (((previousValue != value) 
1617							|| (this._Session.HasLoadedOrAssignedValue == false)))
1618				{
1619					this.SendPropertyChanging();
1620					if ((previousValue != null))
1621					{
1622						this._Session.Entity = null;
1623						previousValue.SessionPresenters.Remove(this);
1624					}
1625					this._Session.Entity = value;
1626					if ((value != null))
1627					{
1628						value.SessionPresenters.Add(this);
1629						this._SessionId = value.Id;
1630					}
1631					else
1632					{
1633						this._SessionId = default(int);
1634					}
1635					this.SendPropertyChanged("Session");
1636				}
1637			}
1638		}
1639		
1640		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Presenter_SessionPresenter", Storage="_Presenter", ThisKey="PresenterId", OtherKey="Id", IsForeignKey=true)]
1641		public Presenter Presenter
1642		{
1643			get
1644			{
1645				return this._Presenter.Entity;
1646			}
1647			set
1648			{
1649				Presenter previousValue = this._Presenter.Entity;
1650				if (((previousValue != value) 
1651							|| (this._Presenter.HasLoadedOrAssignedValue == false)))
1652				{
1653					this.SendPropertyChanging();
1654					if ((previousValue != null))
1655					{
1656						this._Presenter.Entity = null;
1657						previousValue.SessionPresenters.Remove(this);
1658					}
1659					this._Presenter.Entity = value;
1660					if ((value != null))
1661					{
1662						value.SessionPresenters.Add(this);
1663						this._PresenterId = value.Id;
1664					}
1665					else
1666					{
1667						this._PresenterId = default(int);
1668					}
1669					this.SendPropertyChanged("Presenter");
1670				}
1671			}
1672		}
1673		
1674		public event PropertyChangingEventHandler PropertyChanging;
1675		
1676		public event PropertyChangedEventHandler PropertyChanged;
1677		
1678		protected virtual void SendPropertyChanging()
1679		{
1680			if ((this.PropertyChanging != null))
1681			{
1682				this.PropertyChanging(this, emptyChangingEventArgs);
1683			}
1684		}
1685		
1686		protected virtual void SendPropertyChanged(String propertyName)
1687		{
1688			if ((this.PropertyChanged != null))
1689			{
1690				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1691			}
1692		}
1693	}
1694	
1695	[global::System.Data.Linq.Mapping.TableAttribute(Name="[CodeCamp01.Contents].Presenters")]
1696	public partial class Presenter : INotifyPropertyChanging, INotifyPropertyChanged
1697	{
1698		
1699		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1700		
1701		private int _Id;
1702		
1703		private int _EventId;
1704		
1705		private string _UserIdentityName;
1706		
1707		private string _FirstName;
1708		
1709		private string _LastName;
1710		
1711		private string _TwitterName;
1712		
1713		private string _EmailAddress;
1714		
1715		private string _WebsiteUrl;
1716		
1717		private string _BlogUrl;
1718		
1719		private string _Biography;
1720		
1721		private string _ShirtSize;
1722		
1723		private EntitySet<SessionPresenter> _SessionPresenters;
1724		
1725		private EntityRef<Event> _Event;
1726		
1727    #region Extensibility Method Definitions
1728    partial void OnLoaded();
1729    partial void OnValidate(System.Data.Linq.ChangeAction action);
1730    partial void OnCreated();
1731    partial void OnIdChanging(int value);
1732    partial void OnIdChanged();
1733    partial void OnEventIdChanging(int value);
1734    partial void OnEventIdChanged();
1735    partial void OnUserIdentityNameChanging(string value);
1736    partial void OnUserIdentityNameChanged();
1737    partial void OnFirstNameChanging(string value);
1738    partial void OnFirstNameChanged();
1739    partial void OnLastNameChanging(string value);
1740    partial void OnLastNameChanged();
1741    partial void OnTwitterNameChanging(string value);
1742    partial void OnTwitterNameChanged();
1743    partial void OnEmailAddressChanging(string value);
1744    partial void OnEmailAddressChanged();
1745    partial void OnWebsiteUrlChanging(string value);
1746    partial void OnWebsiteUrlChanged();
1747    partial void OnBlogUrlChanging(string value);
1748    partial void OnBlogUrlChanged();
1749    partial void OnBiographyChanging(string value);
1750    partial void OnBiographyChanged();
1751    partial void OnShirtSizeChanging(string value);
1752    partial void OnShirtSizeChanged();
1753    #endregion
1754		
1755		public Presenter()
1756		{
1757			this._SessionPresenters = new EntitySet<SessionPresenter>(new Action<SessionPresenter>(this.attach_SessionPresenters), new Action<SessionPresenter>(this.detach_SessionPresenters));
1758			this._Event = default(EntityRef<Event>);
1759			OnCreated();
1760		}
1761		
1762		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
1763		public int Id
1764		{
1765			get
1766			{
1767				return this._Id;
1768			}
1769			set
1770			{
1771				if ((this._Id != value))
1772				{
1773					this.OnIdChanging(value);
1774					this.SendPropertyChanging();
1775					this._Id = value;
1776					this.SendPropertyChanged("Id");
1777					this.OnIdChanged();
1778				}
1779			}
1780		}
1781		
1782		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EventId", DbType="Int NOT NULL")]
1783		public int EventId
1784		{
1785			get
1786			{
1787				return this._EventId;
1788			}
1789			set
1790			{
1791				if ((this._EventId != value))
1792				{
1793					if (this._Event.HasLoadedOrAssignedValue)
1794					{
1795						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1796					}
1797					this.OnEventIdChanging(value);
1798					this.SendPropertyChanging();
1799					this._EventId = value;
1800					this.SendPropertyChanged("EventId");
1801					this.OnEventIdChanged();
1802				}
1803			}
1804		}
1805		
1806		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserIdentityName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
1807		public string UserIdentityName
1808		{
1809			get
1810			{
1811				return this._UserIdentityName;
1812			}
1813			set
1814			{
1815				if ((this._UserIdentityName != value))
1816				{
1817					this.OnUserIdentityNameChanging(value);
1818					this.SendPropertyChanging();
1819					this._UserIdentityName = value;
1820					this.SendPropertyChanged("UserIdentityName");
1821					this.OnUserIdentityNameChanged();
1822				}
1823			}
1824		}
1825		
1826		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
1827		public string FirstName
1828		{
1829			get
1830			{
1831				return this._FirstName;
1832			}
1833			set
1834			{
1835				if ((this._FirstName != value))
1836				{
1837					this.OnFirstNameChanging(value);
1838					this.SendPropertyChanging();
1839					this._FirstName = value;
1840					this.SendPropertyChanged("FirstName");
1841					this.OnFirstNameChanged();
1842				}
1843			}
1844		}
1845		
1846		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastName", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
1847		public string LastName
1848		{
1849			get
1850			{
1851				return this._LastName;
1852			}
1853			set
1854			{
1855				if ((this._LastName != value))
1856				{
1857					this.OnLastNameChanging(value);
1858					this.SendPropertyChanging();
1859					this._LastName = value;
1860					this.SendPropertyChanged("LastName");
1861					this.OnLastNameChanged();
1862				}
1863			}
1864		}
1865		
1866		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TwitterName", DbType="NVarChar(128)")]
1867		public string TwitterName
1868		{
1869			get
1870			{
1871				return this._TwitterName;
1872			}
1873			set
1874			{
1875				if ((this._TwitterName !=

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