PageRenderTime 4ms CodeModel.GetById 5ms app.highlight 65ms RepoModel.GetById 1ms app.codeStats 1ms

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

https://bitbucket.org/dsargent/codecamp
C# | 3641 lines | 3236 code | 396 blank | 9 comment | 348 complexity | 4a82dbb8369d9adfab31049520c06467 MD5 | raw file

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

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

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