PageRenderTime 79ms CodeModel.GetById 3ms app.highlight 66ms RepoModel.GetById 2ms app.codeStats 0ms

/AeroSched/Models/AeroSchedDAL.designer.cs

https://bitbucket.org/surfingcrab/aerosched
C# | 1984 lines | 1776 code | 199 blank | 9 comment | 186 complexity | c6682d6e28d71730b8ad18c6d39679b4 MD5 | raw file
   1#pragma warning disable 1591
   2//------------------------------------------------------------------------------
   3// <auto-generated>
   4//     This code was generated by a tool.
   5//     Runtime Version:2.0.50727.3603
   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 AS
  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	[System.Data.Linq.Mapping.DatabaseAttribute(Name="FlyHigh")]
  24	public partial class DB : 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 InsertItineraryFlight(AS.Model.ItineraryFlight instance);
  32    partial void UpdateItineraryFlight(AS.Model.ItineraryFlight instance);
  33    partial void DeleteItineraryFlight(AS.Model.ItineraryFlight instance);
  34    partial void InsertItinerary(AS.Model.Itinerary instance);
  35    partial void UpdateItinerary(AS.Model.Itinerary instance);
  36    partial void DeleteItinerary(AS.Model.Itinerary instance);
  37    partial void InsertFlight(AS.Model.Flight instance);
  38    partial void UpdateFlight(AS.Model.Flight instance);
  39    partial void DeleteFlight(AS.Model.Flight instance);
  40    partial void InsertDestination(AS.Model.Destination instance);
  41    partial void UpdateDestination(AS.Model.Destination instance);
  42    partial void DeleteDestination(AS.Model.Destination instance);
  43    partial void Insertaspnet_User(AS.Model.aspnet_User instance);
  44    partial void Updateaspnet_User(AS.Model.aspnet_User instance);
  45    partial void Deleteaspnet_User(AS.Model.aspnet_User instance);
  46    partial void Insertaspnet_Membership(AS.Model.aspnet_Membership instance);
  47    partial void Updateaspnet_Membership(AS.Model.aspnet_Membership instance);
  48    partial void Deleteaspnet_Membership(AS.Model.aspnet_Membership instance);
  49    #endregion
  50		
  51		public DB() : 
  52				base(global::System.Configuration.ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString, mappingSource)
  53		{
  54			OnCreated();
  55		}
  56		
  57		public DB(string connection) : 
  58				base(connection, mappingSource)
  59		{
  60			OnCreated();
  61		}
  62		
  63		public DB(System.Data.IDbConnection connection) : 
  64				base(connection, mappingSource)
  65		{
  66			OnCreated();
  67		}
  68		
  69		public DB(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
  70				base(connection, mappingSource)
  71		{
  72			OnCreated();
  73		}
  74		
  75		public DB(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
  76				base(connection, mappingSource)
  77		{
  78			OnCreated();
  79		}
  80		
  81		public System.Data.Linq.Table<AS.Model.ItineraryFlight> ItineraryFlights
  82		{
  83			get
  84			{
  85				return this.GetTable<AS.Model.ItineraryFlight>();
  86			}
  87		}
  88		
  89		public System.Data.Linq.Table<AS.Model.Itinerary> Itineraries
  90		{
  91			get
  92			{
  93				return this.GetTable<AS.Model.Itinerary>();
  94			}
  95		}
  96		
  97		public System.Data.Linq.Table<AS.Model.Flight> Flights
  98		{
  99			get
 100			{
 101				return this.GetTable<AS.Model.Flight>();
 102			}
 103		}
 104		
 105		public System.Data.Linq.Table<AS.Model.Destination> Destinations
 106		{
 107			get
 108			{
 109				return this.GetTable<AS.Model.Destination>();
 110			}
 111		}
 112		
 113		public System.Data.Linq.Table<AS.Model.aspnet_User> aspnet_Users
 114		{
 115			get
 116			{
 117				return this.GetTable<AS.Model.aspnet_User>();
 118			}
 119		}
 120		
 121		public System.Data.Linq.Table<AS.Model.aspnet_Membership> aspnet_Memberships
 122		{
 123			get
 124			{
 125				return this.GetTable<AS.Model.aspnet_Membership>();
 126			}
 127		}
 128	}
 129}
 130namespace AS.Model
 131{
 132	using System.Data.Linq;
 133	using System.Data.Linq.Mapping;
 134	using System.ComponentModel;
 135	using System;
 136	
 137	
 138	[Table(Name="dbo.ItineraryFlights")]
 139	public partial class ItineraryFlight : INotifyPropertyChanging, INotifyPropertyChanged
 140	{
 141		
 142		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
 143		
 144		private int _ItineraryFlightId;
 145		
 146		private int _ItineraryId;
 147		
 148		private int _FlightId;
 149		
 150		private bool _IsReturn;
 151		
 152		private EntityRef<Itinerary> _Itinerary;
 153		
 154		private EntityRef<Flight> _Flight;
 155		
 156    #region Extensibility Method Definitions
 157    partial void OnLoaded();
 158    partial void OnValidate(System.Data.Linq.ChangeAction action);
 159    partial void OnCreated();
 160    partial void OnItineraryFlightIdChanging(int value);
 161    partial void OnItineraryFlightIdChanged();
 162    partial void OnItineraryIdChanging(int value);
 163    partial void OnItineraryIdChanged();
 164    partial void OnFlightIdChanging(int value);
 165    partial void OnFlightIdChanged();
 166    partial void OnIsReturnChanging(bool value);
 167    partial void OnIsReturnChanged();
 168    #endregion
 169		
 170		public ItineraryFlight()
 171		{
 172			this._Itinerary = default(EntityRef<Itinerary>);
 173			this._Flight = default(EntityRef<Flight>);
 174			OnCreated();
 175		}
 176		
 177		[Column(Storage="_ItineraryFlightId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
 178		public int ItineraryFlightId
 179		{
 180			get
 181			{
 182				return this._ItineraryFlightId;
 183			}
 184			set
 185			{
 186				if ((this._ItineraryFlightId != value))
 187				{
 188					this.OnItineraryFlightIdChanging(value);
 189					this.SendPropertyChanging();
 190					this._ItineraryFlightId = value;
 191					this.SendPropertyChanged("ItineraryFlightId");
 192					this.OnItineraryFlightIdChanged();
 193				}
 194			}
 195		}
 196		
 197		[Column(Storage="_ItineraryId", DbType="Int NOT NULL")]
 198		public int ItineraryId
 199		{
 200			get
 201			{
 202				return this._ItineraryId;
 203			}
 204			set
 205			{
 206				if ((this._ItineraryId != value))
 207				{
 208					if (this._Itinerary.HasLoadedOrAssignedValue)
 209					{
 210						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
 211					}
 212					this.OnItineraryIdChanging(value);
 213					this.SendPropertyChanging();
 214					this._ItineraryId = value;
 215					this.SendPropertyChanged("ItineraryId");
 216					this.OnItineraryIdChanged();
 217				}
 218			}
 219		}
 220		
 221		[Column(Storage="_FlightId", DbType="Int NOT NULL")]
 222		public int FlightId
 223		{
 224			get
 225			{
 226				return this._FlightId;
 227			}
 228			set
 229			{
 230				if ((this._FlightId != value))
 231				{
 232					if (this._Flight.HasLoadedOrAssignedValue)
 233					{
 234						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
 235					}
 236					this.OnFlightIdChanging(value);
 237					this.SendPropertyChanging();
 238					this._FlightId = value;
 239					this.SendPropertyChanged("FlightId");
 240					this.OnFlightIdChanged();
 241				}
 242			}
 243		}
 244		
 245		[Column(Storage="_IsReturn", DbType="Bit NOT NULL")]
 246		public bool IsReturn
 247		{
 248			get
 249			{
 250				return this._IsReturn;
 251			}
 252			set
 253			{
 254				if ((this._IsReturn != value))
 255				{
 256					this.OnIsReturnChanging(value);
 257					this.SendPropertyChanging();
 258					this._IsReturn = value;
 259					this.SendPropertyChanged("IsReturn");
 260					this.OnIsReturnChanged();
 261				}
 262			}
 263		}
 264		
 265		[Association(Name="Itinerary_ItineraryFlight", Storage="_Itinerary", ThisKey="ItineraryId", OtherKey="ItineraryId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
 266		public Itinerary Itinerary
 267		{
 268			get
 269			{
 270				return this._Itinerary.Entity;
 271			}
 272			set
 273			{
 274				Itinerary previousValue = this._Itinerary.Entity;
 275				if (((previousValue != value) 
 276							|| (this._Itinerary.HasLoadedOrAssignedValue == false)))
 277				{
 278					this.SendPropertyChanging();
 279					if ((previousValue != null))
 280					{
 281						this._Itinerary.Entity = null;
 282						previousValue.ItineraryFlights.Remove(this);
 283					}
 284					this._Itinerary.Entity = value;
 285					if ((value != null))
 286					{
 287						value.ItineraryFlights.Add(this);
 288						this._ItineraryId = value.ItineraryId;
 289					}
 290					else
 291					{
 292						this._ItineraryId = default(int);
 293					}
 294					this.SendPropertyChanged("Itinerary");
 295				}
 296			}
 297		}
 298		
 299		[Association(Name="Flight_ItineraryFlight", Storage="_Flight", ThisKey="FlightId", OtherKey="FlightId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
 300		public Flight Flight
 301		{
 302			get
 303			{
 304				return this._Flight.Entity;
 305			}
 306			set
 307			{
 308				Flight previousValue = this._Flight.Entity;
 309				if (((previousValue != value) 
 310							|| (this._Flight.HasLoadedOrAssignedValue == false)))
 311				{
 312					this.SendPropertyChanging();
 313					if ((previousValue != null))
 314					{
 315						this._Flight.Entity = null;
 316						previousValue.ItineraryFlights.Remove(this);
 317					}
 318					this._Flight.Entity = value;
 319					if ((value != null))
 320					{
 321						value.ItineraryFlights.Add(this);
 322						this._FlightId = value.FlightId;
 323					}
 324					else
 325					{
 326						this._FlightId = default(int);
 327					}
 328					this.SendPropertyChanged("Flight");
 329				}
 330			}
 331		}
 332		
 333		public event PropertyChangingEventHandler PropertyChanging;
 334		
 335		public event PropertyChangedEventHandler PropertyChanged;
 336		
 337		protected virtual void SendPropertyChanging()
 338		{
 339			if ((this.PropertyChanging != null))
 340			{
 341				this.PropertyChanging(this, emptyChangingEventArgs);
 342			}
 343		}
 344		
 345		protected virtual void SendPropertyChanged(String propertyName)
 346		{
 347			if ((this.PropertyChanged != null))
 348			{
 349				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
 350			}
 351		}
 352	}
 353	
 354	[Table(Name="dbo.Itineraries")]
 355	public partial class Itinerary : INotifyPropertyChanging, INotifyPropertyChanged
 356	{
 357		
 358		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
 359		
 360		private int _ItineraryId;
 361		
 362		private int _JourneyType;
 363		
 364		private System.DateTime _BookingDate;
 365		
 366		private System.Guid _UserId;
 367		
 368		private EntitySet<ItineraryFlight> _ItineraryFlights;
 369		
 370		private EntityRef<aspnet_User> _aspnet_User;
 371		
 372    #region Extensibility Method Definitions
 373    partial void OnLoaded();
 374    partial void OnValidate(System.Data.Linq.ChangeAction action);
 375    partial void OnCreated();
 376    partial void OnItineraryIdChanging(int value);
 377    partial void OnItineraryIdChanged();
 378    partial void OnJourneyTypeChanging(int value);
 379    partial void OnJourneyTypeChanged();
 380    partial void OnBookingDateChanging(System.DateTime value);
 381    partial void OnBookingDateChanged();
 382    partial void OnUserIdChanging(System.Guid value);
 383    partial void OnUserIdChanged();
 384    #endregion
 385		
 386		public Itinerary()
 387		{
 388			this._ItineraryFlights = new EntitySet<ItineraryFlight>(new Action<ItineraryFlight>(this.attach_ItineraryFlights), new Action<ItineraryFlight>(this.detach_ItineraryFlights));
 389			this._aspnet_User = default(EntityRef<aspnet_User>);
 390			OnCreated();
 391		}
 392		
 393		[Column(Storage="_ItineraryId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
 394		public int ItineraryId
 395		{
 396			get
 397			{
 398				return this._ItineraryId;
 399			}
 400			set
 401			{
 402				if ((this._ItineraryId != value))
 403				{
 404					this.OnItineraryIdChanging(value);
 405					this.SendPropertyChanging();
 406					this._ItineraryId = value;
 407					this.SendPropertyChanged("ItineraryId");
 408					this.OnItineraryIdChanged();
 409				}
 410			}
 411		}
 412		
 413		[Column(Storage="_JourneyType", DbType="Int NOT NULL")]
 414		public int JourneyType
 415		{
 416			get
 417			{
 418				return this._JourneyType;
 419			}
 420			set
 421			{
 422				if ((this._JourneyType != value))
 423				{
 424					this.OnJourneyTypeChanging(value);
 425					this.SendPropertyChanging();
 426					this._JourneyType = value;
 427					this.SendPropertyChanged("JourneyType");
 428					this.OnJourneyTypeChanged();
 429				}
 430			}
 431		}
 432		
 433		[Column(Storage="_BookingDate", DbType="DateTime NOT NULL")]
 434		public System.DateTime BookingDate
 435		{
 436			get
 437			{
 438				return this._BookingDate;
 439			}
 440			set
 441			{
 442				if ((this._BookingDate != value))
 443				{
 444					this.OnBookingDateChanging(value);
 445					this.SendPropertyChanging();
 446					this._BookingDate = value;
 447					this.SendPropertyChanged("BookingDate");
 448					this.OnBookingDateChanged();
 449				}
 450			}
 451		}
 452		
 453		[Column(Storage="_UserId", DbType="UniqueIdentifier NOT NULL")]
 454		public System.Guid UserId
 455		{
 456			get
 457			{
 458				return this._UserId;
 459			}
 460			set
 461			{
 462				if ((this._UserId != value))
 463				{
 464					if (this._aspnet_User.HasLoadedOrAssignedValue)
 465					{
 466						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
 467					}
 468					this.OnUserIdChanging(value);
 469					this.SendPropertyChanging();
 470					this._UserId = value;
 471					this.SendPropertyChanged("UserId");
 472					this.OnUserIdChanged();
 473				}
 474			}
 475		}
 476		
 477		[Association(Name="Itinerary_ItineraryFlight", Storage="_ItineraryFlights", ThisKey="ItineraryId", OtherKey="ItineraryId")]
 478		public EntitySet<ItineraryFlight> ItineraryFlights
 479		{
 480			get
 481			{
 482				return this._ItineraryFlights;
 483			}
 484			set
 485			{
 486				this._ItineraryFlights.Assign(value);
 487			}
 488		}
 489		
 490		[Association(Name="aspnet_User_Itinerary", Storage="_aspnet_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
 491		public aspnet_User aspnet_User
 492		{
 493			get
 494			{
 495				return this._aspnet_User.Entity;
 496			}
 497			set
 498			{
 499				aspnet_User previousValue = this._aspnet_User.Entity;
 500				if (((previousValue != value) 
 501							|| (this._aspnet_User.HasLoadedOrAssignedValue == false)))
 502				{
 503					this.SendPropertyChanging();
 504					if ((previousValue != null))
 505					{
 506						this._aspnet_User.Entity = null;
 507						previousValue.Itineraries.Remove(this);
 508					}
 509					this._aspnet_User.Entity = value;
 510					if ((value != null))
 511					{
 512						value.Itineraries.Add(this);
 513						this._UserId = value.UserId;
 514					}
 515					else
 516					{
 517						this._UserId = default(System.Guid);
 518					}
 519					this.SendPropertyChanged("aspnet_User");
 520				}
 521			}
 522		}
 523		
 524		public event PropertyChangingEventHandler PropertyChanging;
 525		
 526		public event PropertyChangedEventHandler PropertyChanged;
 527		
 528		protected virtual void SendPropertyChanging()
 529		{
 530			if ((this.PropertyChanging != null))
 531			{
 532				this.PropertyChanging(this, emptyChangingEventArgs);
 533			}
 534		}
 535		
 536		protected virtual void SendPropertyChanged(String propertyName)
 537		{
 538			if ((this.PropertyChanged != null))
 539			{
 540				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
 541			}
 542		}
 543		
 544		private void attach_ItineraryFlights(ItineraryFlight entity)
 545		{
 546			this.SendPropertyChanging();
 547			entity.Itinerary = this;
 548		}
 549		
 550		private void detach_ItineraryFlights(ItineraryFlight entity)
 551		{
 552			this.SendPropertyChanging();
 553			entity.Itinerary = null;
 554		}
 555	}
 556	
 557	[Table(Name="dbo.Flights")]
 558	public partial class Flight : INotifyPropertyChanging, INotifyPropertyChanged
 559	{
 560		
 561		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
 562		
 563		private int _FlightId;
 564		
 565		private string _FlightNumber;
 566		
 567		private int _Capacity;
 568		
 569		private int _SeatsOpen;
 570		
 571		private System.DateTime _DeptDateTime;
 572		
 573		private System.DateTime _ArrvDateTime;
 574		
 575		private decimal _Price;
 576		
 577		private int _Origin;
 578		
 579		private int _Destination;
 580		
 581		private EntitySet<ItineraryFlight> _ItineraryFlights;
 582		
 583		private EntityRef<Destination> _Destination1;
 584		
 585		private EntityRef<Destination> _Destination2;
 586		
 587    #region Extensibility Method Definitions
 588    partial void OnLoaded();
 589    partial void OnValidate(System.Data.Linq.ChangeAction action);
 590    partial void OnCreated();
 591    partial void OnFlightIdChanging(int value);
 592    partial void OnFlightIdChanged();
 593    partial void OnFlightNumberChanging(string value);
 594    partial void OnFlightNumberChanged();
 595    partial void OnCapacityChanging(int value);
 596    partial void OnCapacityChanged();
 597    partial void OnSeatsOpenChanging(int value);
 598    partial void OnSeatsOpenChanged();
 599    partial void OnDeptDateTimeChanging(System.DateTime value);
 600    partial void OnDeptDateTimeChanged();
 601    partial void OnArrvDateTimeChanging(System.DateTime value);
 602    partial void OnArrvDateTimeChanged();
 603    partial void OnPriceChanging(decimal value);
 604    partial void OnPriceChanged();
 605    partial void OnOriginChanging(int value);
 606    partial void OnOriginChanged();
 607    partial void OnDestinationChanging(int value);
 608    partial void OnDestinationChanged();
 609    #endregion
 610		
 611		public Flight()
 612		{
 613			this._ItineraryFlights = new EntitySet<ItineraryFlight>(new Action<ItineraryFlight>(this.attach_ItineraryFlights), new Action<ItineraryFlight>(this.detach_ItineraryFlights));
 614			this._Destination1 = default(EntityRef<Destination>);
 615			this._Destination2 = default(EntityRef<Destination>);
 616			OnCreated();
 617		}
 618		
 619		[Column(Storage="_FlightId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
 620		public int FlightId
 621		{
 622			get
 623			{
 624				return this._FlightId;
 625			}
 626			set
 627			{
 628				if ((this._FlightId != value))
 629				{
 630					this.OnFlightIdChanging(value);
 631					this.SendPropertyChanging();
 632					this._FlightId = value;
 633					this.SendPropertyChanged("FlightId");
 634					this.OnFlightIdChanged();
 635				}
 636			}
 637		}
 638		
 639		[Column(Storage="_FlightNumber", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
 640		public string FlightNumber
 641		{
 642			get
 643			{
 644				return this._FlightNumber;
 645			}
 646			set
 647			{
 648				if ((this._FlightNumber != value))
 649				{
 650					this.OnFlightNumberChanging(value);
 651					this.SendPropertyChanging();
 652					this._FlightNumber = value;
 653					this.SendPropertyChanged("FlightNumber");
 654					this.OnFlightNumberChanged();
 655				}
 656			}
 657		}
 658		
 659		[Column(Storage="_Capacity", DbType="Int NOT NULL")]
 660		public int Capacity
 661		{
 662			get
 663			{
 664				return this._Capacity;
 665			}
 666			set
 667			{
 668				if ((this._Capacity != value))
 669				{
 670					this.OnCapacityChanging(value);
 671					this.SendPropertyChanging();
 672					this._Capacity = value;
 673					this.SendPropertyChanged("Capacity");
 674					this.OnCapacityChanged();
 675				}
 676			}
 677		}
 678		
 679		[Column(Storage="_SeatsOpen", DbType="Int NOT NULL")]
 680		public int SeatsOpen
 681		{
 682			get
 683			{
 684				return this._SeatsOpen;
 685			}
 686			set
 687			{
 688				if ((this._SeatsOpen != value))
 689				{
 690					this.OnSeatsOpenChanging(value);
 691					this.SendPropertyChanging();
 692					this._SeatsOpen = value;
 693					this.SendPropertyChanged("SeatsOpen");
 694					this.OnSeatsOpenChanged();
 695				}
 696			}
 697		}
 698		
 699		[Column(Storage="_DeptDateTime", DbType="DateTime NOT NULL")]
 700		public System.DateTime DeptDateTime
 701		{
 702			get
 703			{
 704				return this._DeptDateTime;
 705			}
 706			set
 707			{
 708				if ((this._DeptDateTime != value))
 709				{
 710					this.OnDeptDateTimeChanging(value);
 711					this.SendPropertyChanging();
 712					this._DeptDateTime = value;
 713					this.SendPropertyChanged("DeptDateTime");
 714					this.OnDeptDateTimeChanged();
 715				}
 716			}
 717		}
 718		
 719		[Column(Storage="_ArrvDateTime", DbType="DateTime NOT NULL")]
 720		public System.DateTime ArrvDateTime
 721		{
 722			get
 723			{
 724				return this._ArrvDateTime;
 725			}
 726			set
 727			{
 728				if ((this._ArrvDateTime != value))
 729				{
 730					this.OnArrvDateTimeChanging(value);
 731					this.SendPropertyChanging();
 732					this._ArrvDateTime = value;
 733					this.SendPropertyChanged("ArrvDateTime");
 734					this.OnArrvDateTimeChanged();
 735				}
 736			}
 737		}
 738		
 739		[Column(Storage="_Price", DbType="Money NOT NULL")]
 740		public decimal Price
 741		{
 742			get
 743			{
 744				return this._Price;
 745			}
 746			set
 747			{
 748				if ((this._Price != value))
 749				{
 750					this.OnPriceChanging(value);
 751					this.SendPropertyChanging();
 752					this._Price = value;
 753					this.SendPropertyChanged("Price");
 754					this.OnPriceChanged();
 755				}
 756			}
 757		}
 758		
 759		[Column(Storage="_Origin", DbType="Int NOT NULL")]
 760		public int Origin
 761		{
 762			get
 763			{
 764				return this._Origin;
 765			}
 766			set
 767			{
 768				if ((this._Origin != value))
 769				{
 770					if (this._Destination1.HasLoadedOrAssignedValue)
 771					{
 772						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
 773					}
 774					this.OnOriginChanging(value);
 775					this.SendPropertyChanging();
 776					this._Origin = value;
 777					this.SendPropertyChanged("Origin");
 778					this.OnOriginChanged();
 779				}
 780			}
 781		}
 782		
 783		[Column(Storage="_Destination", DbType="Int NOT NULL")]
 784		public int Destination
 785		{
 786			get
 787			{
 788				return this._Destination;
 789			}
 790			set
 791			{
 792				if ((this._Destination != value))
 793				{
 794					if (this._Destination2.HasLoadedOrAssignedValue)
 795					{
 796						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
 797					}
 798					this.OnDestinationChanging(value);
 799					this.SendPropertyChanging();
 800					this._Destination = value;
 801					this.SendPropertyChanged("Destination");
 802					this.OnDestinationChanged();
 803				}
 804			}
 805		}
 806		
 807		[Association(Name="Flight_ItineraryFlight", Storage="_ItineraryFlights", ThisKey="FlightId", OtherKey="FlightId")]
 808		public EntitySet<ItineraryFlight> ItineraryFlights
 809		{
 810			get
 811			{
 812				return this._ItineraryFlights;
 813			}
 814			set
 815			{
 816				this._ItineraryFlights.Assign(value);
 817			}
 818		}
 819		
 820		[Association(Name="Destination_Flight", Storage="_Destination1", ThisKey="Origin", OtherKey="DestinationId", IsForeignKey=true)]
 821		public Destination Destination1
 822		{
 823			get
 824			{
 825				return this._Destination1.Entity;
 826			}
 827			set
 828			{
 829				Destination previousValue = this._Destination1.Entity;
 830				if (((previousValue != value) 
 831							|| (this._Destination1.HasLoadedOrAssignedValue == false)))
 832				{
 833					this.SendPropertyChanging();
 834					if ((previousValue != null))
 835					{
 836						this._Destination1.Entity = null;
 837						previousValue.Flights.Remove(this);
 838					}
 839					this._Destination1.Entity = value;
 840					if ((value != null))
 841					{
 842						value.Flights.Add(this);
 843						this._Origin = value.DestinationId;
 844					}
 845					else
 846					{
 847						this._Origin = default(int);
 848					}
 849					this.SendPropertyChanged("Destination1");
 850				}
 851			}
 852		}
 853		
 854		[Association(Name="Destination_Flight1", Storage="_Destination2", ThisKey="Destination", OtherKey="DestinationId", IsForeignKey=true)]
 855		public Destination Destination2
 856		{
 857			get
 858			{
 859				return this._Destination2.Entity;
 860			}
 861			set
 862			{
 863				Destination previousValue = this._Destination2.Entity;
 864				if (((previousValue != value) 
 865							|| (this._Destination2.HasLoadedOrAssignedValue == false)))
 866				{
 867					this.SendPropertyChanging();
 868					if ((previousValue != null))
 869					{
 870						this._Destination2.Entity = null;
 871						previousValue.Flights1.Remove(this);
 872					}
 873					this._Destination2.Entity = value;
 874					if ((value != null))
 875					{
 876						value.Flights1.Add(this);
 877						this._Destination = value.DestinationId;
 878					}
 879					else
 880					{
 881						this._Destination = default(int);
 882					}
 883					this.SendPropertyChanged("Destination2");
 884				}
 885			}
 886		}
 887		
 888		public event PropertyChangingEventHandler PropertyChanging;
 889		
 890		public event PropertyChangedEventHandler PropertyChanged;
 891		
 892		protected virtual void SendPropertyChanging()
 893		{
 894			if ((this.PropertyChanging != null))
 895			{
 896				this.PropertyChanging(this, emptyChangingEventArgs);
 897			}
 898		}
 899		
 900		protected virtual void SendPropertyChanged(String propertyName)
 901		{
 902			if ((this.PropertyChanged != null))
 903			{
 904				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
 905			}
 906		}
 907		
 908		private void attach_ItineraryFlights(ItineraryFlight entity)
 909		{
 910			this.SendPropertyChanging();
 911			entity.Flight = this;
 912		}
 913		
 914		private void detach_ItineraryFlights(ItineraryFlight entity)
 915		{
 916			this.SendPropertyChanging();
 917			entity.Flight = null;
 918		}
 919	}
 920	
 921	[Table(Name="dbo.Destinations")]
 922	public partial class Destination : INotifyPropertyChanging, INotifyPropertyChanged
 923	{
 924		
 925		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
 926		
 927		private int _DestinationId;
 928		
 929		private string _DestinationCity;
 930		
 931		private string _DestinationCountry;
 932		
 933		private string _DestinationDesc;
 934		
 935		private string _DestinationCode;
 936		
 937		private EntitySet<Flight> _Flights;
 938		
 939		private EntitySet<Flight> _Flights1;
 940		
 941    #region Extensibility Method Definitions
 942    partial void OnLoaded();
 943    partial void OnValidate(System.Data.Linq.ChangeAction action);
 944    partial void OnCreated();
 945    partial void OnDestinationIdChanging(int value);
 946    partial void OnDestinationIdChanged();
 947    partial void OnDestinationCityChanging(string value);
 948    partial void OnDestinationCityChanged();
 949    partial void OnDestinationCountryChanging(string value);
 950    partial void OnDestinationCountryChanged();
 951    partial void OnDestinationDescChanging(string value);
 952    partial void OnDestinationDescChanged();
 953    partial void OnDestinationCodeChanging(string value);
 954    partial void OnDestinationCodeChanged();
 955    #endregion
 956		
 957		public Destination()
 958		{
 959			this._Flights = new EntitySet<Flight>(new Action<Flight>(this.attach_Flights), new Action<Flight>(this.detach_Flights));
 960			this._Flights1 = new EntitySet<Flight>(new Action<Flight>(this.attach_Flights1), new Action<Flight>(this.detach_Flights1));
 961			OnCreated();
 962		}
 963		
 964		[Column(Storage="_DestinationId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
 965		public int DestinationId
 966		{
 967			get
 968			{
 969				return this._DestinationId;
 970			}
 971			set
 972			{
 973				if ((this._DestinationId != value))
 974				{
 975					this.OnDestinationIdChanging(value);
 976					this.SendPropertyChanging();
 977					this._DestinationId = value;
 978					this.SendPropertyChanged("DestinationId");
 979					this.OnDestinationIdChanged();
 980				}
 981			}
 982		}
 983		
 984		[Column(Storage="_DestinationCity", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
 985		public string DestinationCity
 986		{
 987			get
 988			{
 989				return this._DestinationCity;
 990			}
 991			set
 992			{
 993				if ((this._DestinationCity != value))
 994				{
 995					this.OnDestinationCityChanging(value);
 996					this.SendPropertyChanging();
 997					this._DestinationCity = value;
 998					this.SendPropertyChanged("DestinationCity");
 999					this.OnDestinationCityChanged();
1000				}
1001			}
1002		}
1003		
1004		[Column(Storage="_DestinationCountry", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
1005		public string DestinationCountry
1006		{
1007			get
1008			{
1009				return this._DestinationCountry;
1010			}
1011			set
1012			{
1013				if ((this._DestinationCountry != value))
1014				{
1015					this.OnDestinationCountryChanging(value);
1016					this.SendPropertyChanging();
1017					this._DestinationCountry = value;
1018					this.SendPropertyChanged("DestinationCountry");
1019					this.OnDestinationCountryChanged();
1020				}
1021			}
1022		}
1023		
1024		[Column(Storage="_DestinationDesc", DbType="NVarChar(MAX) NOT NULL", CanBeNull=false)]
1025		public string DestinationDesc
1026		{
1027			get
1028			{
1029				return this._DestinationDesc;
1030			}
1031			set
1032			{
1033				if ((this._DestinationDesc != value))
1034				{
1035					this.OnDestinationDescChanging(value);
1036					this.SendPropertyChanging();
1037					this._DestinationDesc = value;
1038					this.SendPropertyChanged("DestinationDesc");
1039					this.OnDestinationDescChanged();
1040				}
1041			}
1042		}
1043		
1044		[Column(Storage="_DestinationCode", DbType="NChar(10) NOT NULL", CanBeNull=false)]
1045		public string DestinationCode
1046		{
1047			get
1048			{
1049				return this._DestinationCode;
1050			}
1051			set
1052			{
1053				if ((this._DestinationCode != value))
1054				{
1055					this.OnDestinationCodeChanging(value);
1056					this.SendPropertyChanging();
1057					this._DestinationCode = value;
1058					this.SendPropertyChanged("DestinationCode");
1059					this.OnDestinationCodeChanged();
1060				}
1061			}
1062		}
1063		
1064		[Association(Name="Destination_Flight", Storage="_Flights", ThisKey="DestinationId", OtherKey="Origin")]
1065		public EntitySet<Flight> Flights
1066		{
1067			get
1068			{
1069				return this._Flights;
1070			}
1071			set
1072			{
1073				this._Flights.Assign(value);
1074			}
1075		}
1076		
1077		[Association(Name="Destination_Flight1", Storage="_Flights1", ThisKey="DestinationId", OtherKey="Destination")]
1078		public EntitySet<Flight> Flights1
1079		{
1080			get
1081			{
1082				return this._Flights1;
1083			}
1084			set
1085			{
1086				this._Flights1.Assign(value);
1087			}
1088		}
1089		
1090		public event PropertyChangingEventHandler PropertyChanging;
1091		
1092		public event PropertyChangedEventHandler PropertyChanged;
1093		
1094		protected virtual void SendPropertyChanging()
1095		{
1096			if ((this.PropertyChanging != null))
1097			{
1098				this.PropertyChanging(this, emptyChangingEventArgs);
1099			}
1100		}
1101		
1102		protected virtual void SendPropertyChanged(String propertyName)
1103		{
1104			if ((this.PropertyChanged != null))
1105			{
1106				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1107			}
1108		}
1109		
1110		private void attach_Flights(Flight entity)
1111		{
1112			this.SendPropertyChanging();
1113			entity.Destination1 = this;
1114		}
1115		
1116		private void detach_Flights(Flight entity)
1117		{
1118			this.SendPropertyChanging();
1119			entity.Destination1 = null;
1120		}
1121		
1122		private void attach_Flights1(Flight entity)
1123		{
1124			this.SendPropertyChanging();
1125			entity.Destination2 = this;
1126		}
1127		
1128		private void detach_Flights1(Flight entity)
1129		{
1130			this.SendPropertyChanging();
1131			entity.Destination2 = null;
1132		}
1133	}
1134	
1135	[Table(Name="dbo.aspnet_Users")]
1136	public partial class aspnet_User : INotifyPropertyChanging, INotifyPropertyChanged
1137	{
1138		
1139		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1140		
1141		private System.Guid _ApplicationId;
1142		
1143		private System.Guid _UserId;
1144		
1145		private string _UserName;
1146		
1147		private string _LoweredUserName;
1148		
1149		private string _MobileAlias;
1150		
1151		private bool _IsAnonymous;
1152		
1153		private System.DateTime _LastActivityDate;
1154		
1155		private EntitySet<Itinerary> _Itineraries;
1156		
1157		private EntityRef<aspnet_Membership> _aspnet_Membership;
1158		
1159    #region Extensibility Method Definitions
1160    partial void OnLoaded();
1161    partial void OnValidate(System.Data.Linq.ChangeAction action);
1162    partial void OnCreated();
1163    partial void OnApplicationIdChanging(System.Guid value);
1164    partial void OnApplicationIdChanged();
1165    partial void OnUserIdChanging(System.Guid value);
1166    partial void OnUserIdChanged();
1167    partial void OnUserNameChanging(string value);
1168    partial void OnUserNameChanged();
1169    partial void OnLoweredUserNameChanging(string value);
1170    partial void OnLoweredUserNameChanged();
1171    partial void OnMobileAliasChanging(string value);
1172    partial void OnMobileAliasChanged();
1173    partial void OnIsAnonymousChanging(bool value);
1174    partial void OnIsAnonymousChanged();
1175    partial void OnLastActivityDateChanging(System.DateTime value);
1176    partial void OnLastActivityDateChanged();
1177    #endregion
1178		
1179		public aspnet_User()
1180		{
1181			this._Itineraries = new EntitySet<Itinerary>(new Action<Itinerary>(this.attach_Itineraries), new Action<Itinerary>(this.detach_Itineraries));
1182			this._aspnet_Membership = default(EntityRef<aspnet_Membership>);
1183			OnCreated();
1184		}
1185		
1186		[Column(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
1187		public System.Guid ApplicationId
1188		{
1189			get
1190			{
1191				return this._ApplicationId;
1192			}
1193			set
1194			{
1195				if ((this._ApplicationId != value))
1196				{
1197					this.OnApplicationIdChanging(value);
1198					this.SendPropertyChanging();
1199					this._ApplicationId = value;
1200					this.SendPropertyChanged("ApplicationId");
1201					this.OnApplicationIdChanged();
1202				}
1203			}
1204		}
1205		
1206		[Column(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1207		public System.Guid UserId
1208		{
1209			get
1210			{
1211				return this._UserId;
1212			}
1213			set
1214			{
1215				if ((this._UserId != value))
1216				{
1217					this.OnUserIdChanging(value);
1218					this.SendPropertyChanging();
1219					this._UserId = value;
1220					this.SendPropertyChanged("UserId");
1221					this.OnUserIdChanged();
1222				}
1223			}
1224		}
1225		
1226		[Column(Storage="_UserName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
1227		public string UserName
1228		{
1229			get
1230			{
1231				return this._UserName;
1232			}
1233			set
1234			{
1235				if ((this._UserName != value))
1236				{
1237					this.OnUserNameChanging(value);
1238					this.SendPropertyChanging();
1239					this._UserName = value;
1240					this.SendPropertyChanged("UserName");
1241					this.OnUserNameChanged();
1242				}
1243			}
1244		}
1245		
1246		[Column(Storage="_LoweredUserName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
1247		public string LoweredUserName
1248		{
1249			get
1250			{
1251				return this._LoweredUserName;
1252			}
1253			set
1254			{
1255				if ((this._LoweredUserName != value))
1256				{
1257					this.OnLoweredUserNameChanging(value);
1258					this.SendPropertyChanging();
1259					this._LoweredUserName = value;
1260					this.SendPropertyChanged("LoweredUserName");
1261					this.OnLoweredUserNameChanged();
1262				}
1263			}
1264		}
1265		
1266		[Column(Storage="_MobileAlias", DbType="NVarChar(16)")]
1267		public string MobileAlias
1268		{
1269			get
1270			{
1271				return this._MobileAlias;
1272			}
1273			set
1274			{
1275				if ((this._MobileAlias != value))
1276				{
1277					this.OnMobileAliasChanging(value);
1278					this.SendPropertyChanging();
1279					this._MobileAlias = value;
1280					this.SendPropertyChanged("MobileAlias");
1281					this.OnMobileAliasChanged();
1282				}
1283			}
1284		}
1285		
1286		[Column(Storage="_IsAnonymous", DbType="Bit NOT NULL")]
1287		public bool IsAnonymous
1288		{
1289			get
1290			{
1291				return this._IsAnonymous;
1292			}
1293			set
1294			{
1295				if ((this._IsAnonymous != value))
1296				{
1297					this.OnIsAnonymousChanging(value);
1298					this.SendPropertyChanging();
1299					this._IsAnonymous = value;
1300					this.SendPropertyChanged("IsAnonymous");
1301					this.OnIsAnonymousChanged();
1302				}
1303			}
1304		}
1305		
1306		[Column(Storage="_LastActivityDate", DbType="DateTime NOT NULL")]
1307		public System.DateTime LastActivityDate
1308		{
1309			get
1310			{
1311				return this._LastActivityDate;
1312			}
1313			set
1314			{
1315				if ((this._LastActivityDate != value))
1316				{
1317					this.OnLastActivityDateChanging(value);
1318					this.SendPropertyChanging();
1319					this._LastActivityDate = value;
1320					this.SendPropertyChanged("LastActivityDate");
1321					this.OnLastActivityDateChanged();
1322				}
1323			}
1324		}
1325		
1326		[Association(Name="aspnet_User_Itinerary", Storage="_Itineraries", ThisKey="UserId", OtherKey="UserId")]
1327		public EntitySet<Itinerary> Itineraries
1328		{
1329			get
1330			{
1331				return this._Itineraries;
1332			}
1333			set
1334			{
1335				this._Itineraries.Assign(value);
1336			}
1337		}
1338		
1339		[Association(Name="aspnet_User_aspnet_Membership", Storage="_aspnet_Membership", ThisKey="UserId", OtherKey="UserId", IsUnique=true, IsForeignKey=false)]
1340		public aspnet_Membership aspnet_Membership
1341		{
1342			get
1343			{
1344				return this._aspnet_Membership.Entity;
1345			}
1346			set
1347			{
1348				aspnet_Membership previousValue = this._aspnet_Membership.Entity;
1349				if (((previousValue != value) 
1350							|| (this._aspnet_Membership.HasLoadedOrAssignedValue == false)))
1351				{
1352					this.SendPropertyChanging();
1353					if ((previousValue != null))
1354					{
1355						this._aspnet_Membership.Entity = null;
1356						previousValue.aspnet_User = null;
1357					}
1358					this._aspnet_Membership.Entity = value;
1359					if ((value != null))
1360					{
1361						value.aspnet_User = this;
1362					}
1363					this.SendPropertyChanged("aspnet_Membership");
1364				}
1365			}
1366		}
1367		
1368		public event PropertyChangingEventHandler PropertyChanging;
1369		
1370		public event PropertyChangedEventHandler PropertyChanged;
1371		
1372		protected virtual void SendPropertyChanging()
1373		{
1374			if ((this.PropertyChanging != null))
1375			{
1376				this.PropertyChanging(this, emptyChangingEventArgs);
1377			}
1378		}
1379		
1380		protected virtual void SendPropertyChanged(String propertyName)
1381		{
1382			if ((this.PropertyChanged != null))
1383			{
1384				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1385			}
1386		}
1387		
1388		private void attach_Itineraries(Itinerary entity)
1389		{
1390			this.SendPropertyChanging();
1391			entity.aspnet_User = this;
1392		}
1393		
1394		private void detach_Itineraries(Itinerary entity)
1395		{
1396			this.SendPropertyChanging();
1397			entity.aspnet_User = null;
1398		}
1399	}
1400	
1401	[Table(Name="dbo.aspnet_Membership")]
1402	public partial class aspnet_Membership : INotifyPropertyChanging, INotifyPropertyChanged
1403	{
1404		
1405		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1406		
1407		private System.Guid _ApplicationId;
1408		
1409		private System.Guid _UserId;
1410		
1411		private string _Password;
1412		
1413		private int _PasswordFormat;
1414		
1415		private string _PasswordSalt;
1416		
1417		private string _MobilePIN;
1418		
1419		private string _Email;
1420		
1421		private string _LoweredEmail;
1422		
1423		private string _PasswordQuestion;
1424		
1425		private string _PasswordAnswer;
1426		
1427		private bool _IsApproved;
1428		
1429		private bool _IsLockedOut;
1430		
1431		private System.DateTime _CreateDate;
1432		
1433		private System.DateTime _LastLoginDate;
1434		
1435		private System.DateTime _LastPasswordChangedDate;
1436		
1437		private System.DateTime _LastLockoutDate;
1438		
1439		private int _FailedPasswordAttemptCount;
1440		
1441		private System.DateTime _FailedPasswordAttemptWindowStart;
1442		
1443		private int _FailedPasswordAnswerAttemptCount;
1444		
1445		private System.DateTime _FailedPasswordAnswerAttemptWindowStart;
1446		
1447		private string _Comment;
1448		
1449		private EntityRef<aspnet_User> _aspnet_User;
1450		
1451    #region Extensibility Method Definitions
1452    partial void OnLoaded();
1453    partial void OnValidate(System.Data.Linq.ChangeAction action);
1454    partial void OnCreated();
1455    partial void OnApplicationIdChanging(System.Guid value);
1456    partial void OnApplicationIdChanged();
1457    partial void OnUserIdChanging(System.Guid value);
1458    partial void OnUserIdChanged();
1459    partial void OnPasswordChanging(string value);
1460    partial void OnPasswordChanged();
1461    partial void OnPasswordFormatChanging(int value);
1462    partial void OnPasswordFormatChanged();
1463    partial void OnPasswordSaltChanging(string value);
1464    partial void OnPasswordSaltChanged();
1465    partial void OnMobilePINChanging(string value);
1466    partial void OnMobilePINChanged();
1467    partial void OnEmailChanging(string value);
1468    partial void OnEmailChanged();
1469    partial void OnLoweredEmailChanging(string value);
1470    partial void OnLoweredEmailChanged();
1471    partial void OnPasswordQuestionChanging(string value);
1472    partial void OnPasswordQuestionChanged();
1473    partial void OnPasswordAnswerChanging(string value);
1474    partial void OnPasswordAnswerChanged();
1475    partial void OnIsApprovedChanging(bool value);
1476    partial void OnIsApprovedChanged();
1477    partial void OnIsLockedOutChanging(bool value);
1478    partial void OnIsLockedOutChanged();
1479    partial void OnCreateDateChanging(System.DateTime value);
1480    partial void OnCreateDateChanged();
1481    partial void OnLastLoginDateChanging(System.DateTime value);
1482    partial void OnLastLoginDateChanged();
1483    partial void OnLastPasswordChangedDateChanging(System.DateTime value);
1484    partial void OnLastPasswordChangedDateChanged();
1485    partial void OnLastLockoutDateChanging(System.DateTime value);
1486    partial void OnLastLockoutDateChanged();
1487    partial void OnFailedPasswordAttemptCountChanging(int value);
1488    partial void OnFailedPasswordAttemptCountChanged();
1489    partial void OnFailedPasswordAttemptWindowStartChanging(System.DateTime value);
1490    partial void OnFailedPasswordAttemptWindowStartChanged();
1491    partial void OnFailedPasswordAnswerAttemptCountChanging(int value);
1492    partial void OnFailedPasswordAnswerAttemptCountChanged();
1493    partial void OnFailedPasswordAnswerAttemptWindowStartChanging(System.DateTime value);
1494    partial void OnFailedPasswordAnswerAttemptWindowStartChanged();
1495    partial void OnCommentChanging(string value);
1496    partial void OnCommentChanged();
1497    #endregion
1498		
1499		public aspnet_Membership()
1500		{
1501			this._aspnet_User = default(EntityRef<aspnet_User>);
1502			OnCreated();
1503		}
1504		
1505		[Column(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
1506		public System.Guid ApplicationId
1507		{
1508			get
1509			{
1510				return this._ApplicationId;
1511			}
1512			set
1513			{
1514				if ((this._ApplicationId != value))
1515				{
1516					this.OnApplicationIdChanging(value);
1517					this.SendPropertyChanging();
1518					this._ApplicationId = value;
1519					this.SendPropertyChanged("ApplicationId");
1520					this.OnApplicationIdChanged();
1521				}
1522			}
1523		}
1524		
1525		[Column(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1526		public System.Guid UserId
1527		{
1528			get
1529			{
1530				return this._UserId;
1531			}
1532			set
1533			{
1534				if ((this._UserId != value))
1535				{
1536					if (this._aspnet_User.HasLoadedOrAssignedValue)
1537					{
1538						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1539					}
1540					this.OnUserIdChanging(value);
1541					this.SendPropertyChanging();
1542					this._UserId = value;
1543					this.SendPropertyChanged("UserId");
1544					this.OnUserIdChanged();
1545				}
1546			}
1547		}
1548		
1549		[Column(Storage="_Password", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
1550		public string Password
1551		{
1552			get
1553			{
1554				return this._Password;
1555			}
1556			set
1557			{
1558				if ((this._Password != value))
1559				{
1560					this.OnPasswordChanging(value);
1561					this.SendPropertyChanging();
1562					this._Password = value;
1563					this.SendPropertyChanged("Password");
1564					this.OnPasswordChanged();
1565				}
1566			}
1567		}
1568		
1569		[Column(Storage="_PasswordFormat", DbType="Int NOT NULL")]
1570		public int PasswordFormat
1571		{
1572			get
1573			{
1574				return this._PasswordFormat;
1575			}
1576			set
1577			{
1578				if ((this._PasswordFormat != value))
1579				{
1580					this.OnPasswordFormatChanging(value);
1581					this.SendPropertyChanging();
1582					this._PasswordFormat = value;
1583					this.SendPropertyChanged("PasswordFormat");
1584					this.OnPasswordFormatChanged();
1585				}
1586			}
1587		}
1588		
1589		[Column(Storage="_PasswordSalt", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
1590		public string PasswordSalt
1591		{
1592			get
1593			{
1594				return this._PasswordSalt;
1595			}
1596			set
1597			{
1598				if ((this._PasswordSalt != value))
1599				{
1600					this.OnPasswordSaltChanging(value);
1601					this.SendPropertyChanging();
1602					this._PasswordSalt = value;
1603					this.SendPropertyChanged("PasswordSalt");
1604					this.OnPasswordSaltChanged();
1605				}
1606			}
1607		}
1608		
1609		[Column(Storage="_MobilePIN", DbType="NVarChar(16)")]
1610		public string MobilePIN
1611		{
1612			get
1613			{
1614				return this._MobilePIN;
1615			}
1616			set
1617			{
1618				if ((this._MobilePIN != value))
1619				{
1620					this.OnMobilePINChanging(value);
1621					this.SendPropertyChanging();
1622					this._MobilePIN = value;
1623					this.SendPropertyChanged("MobilePIN");
1624					this.OnMobilePINChanged();
1625				}
1626			}
1627		}
1628		
1629		[Column(Storage="_Email", DbType="NVarChar(256)")]
1630		public string Email
1631		{
1632			get
1633			{
1634				return this._Email;
1635			}
1636			set
1637			{
1638				if ((this._Email != value))
1639				{
1640					this.OnEmailChanging(value);
1641					this.SendPropertyChanging();
1642					this._Email = value;
1643					this.SendPropertyChanged("Email");
1644					this.OnEmailChanged();
1645				}
1646			}
1647		}
1648		
1649		[Column(Storage="_LoweredEmail", DbType="NVarChar(256)")]
1650		public string LoweredEmail
1651		{
1652			get
1653			{
1654				return this._LoweredEmail;
1655			}
1656			set
1657			{
1658				if ((this._LoweredEmail != value))
1659				{
1660					this.OnLoweredEmailChanging(value);
1661					this.SendPropertyChanging();
1662					this._LoweredEmail = value;
1663					this.SendPropertyChanged("LoweredEmail");
1664					this.OnLoweredEmailChanged();
1665				}
1666			}
1667		}
1668		
1669		[Column(Storage="_PasswordQuestion", DbType="NVarChar(256)")]
1670		public string PasswordQuestion
1671		{
1672			get
1673			{
1674				return this._PasswordQuestion;
1675			}
1676			set
1677			{
1678				if ((this._PasswordQuestion != value))
1679				{
1680					this.OnPasswordQuestionChanging(value);
1681					this.SendPropertyChanging();
1682					this._PasswordQuestion = value;
1683					this.SendPropertyChanged("PasswordQuestion");
1684					this.OnPasswordQuestionChanged();
1685				}
1686			}
1687		}
1688		
1689		[Column(Storage="_PasswordAnswer", DbType="NVarChar(128)")]
1690		public string PasswordAnswer
1691		{
1692			get
1693			{
1694				return this._PasswordAnswer;
1695			}
1696			set
1697			{
1698				if ((this._PasswordAnswer != value))
1699				{
1700					this.OnPasswordAnswerChanging(value);
1701					this.SendPropertyChanging();
1702					this._PasswordAnswer = value;
1703					this.SendPropertyChanged("PasswordAnswer");
1704					this.OnPasswordAnswerChanged();
1705				}
1706			}
1707		}
1708		
1709		[Column(Storage="_IsApproved", DbType="Bit NOT NULL")]
1710		public bool IsApproved
1711		{
1712			get
1713			{
1714				return this._IsApproved;
1715			}
1716			set
1717			{
1718				if ((this._IsApproved != value))
1719				{
1720					this.OnIsApprovedChanging(value);
1721					this.SendPropertyChanging();
1722					this._IsApproved = value;
1723					this.SendPropertyChanged("IsApproved");
1724					this.OnIsApprovedChanged();
1725				}
1726			}
1727		}
1728		
1729		[Column(Storage="_IsLockedOut", DbType="Bit NOT NULL")]
1730		public bool IsLockedOut
1731		{
1732			get
1733			{
1734				return this._IsLockedOut;
1735			}
1736			set
1737			{
1738				if ((this._IsLockedOut != value))
1739				{
1740					this.OnIsLockedOutChanging(value);
1741					this.SendPropertyChanging();
1742					this._IsLockedOut = value;
1743					this.SendPropertyChanged("IsLockedOut");
1744					this.OnIsLockedOutChanged();
1745				}
1746			}
1747		}
1748		
1749		[Column(Storage="_CreateDate", DbType="DateTime NOT NULL")]
1750		public System.DateTime CreateDate
1751		{
1752			get
1753			{
1754				return this._CreateDate;
1755			}
1756			set
1757			{
1758				if ((this._CreateDate != value))
1759				{
1760					this.OnCreateDateChanging(value);
1761					this.SendPropertyChanging();
1762					this._CreateDate = value;
1763					this.SendPropertyChanged("CreateDate");
1764					this.OnCreateDateChanged();
1765				}
1766			}
1767		}
1768		
1769		[Column(Storage="_LastLoginDate", DbType="DateTime NOT NULL")]
1770		public System.DateTime LastLoginDate
1771		{
1772			get
1773			{
1774				return this._LastLoginDate;
1775			}
1776			set
1777			{
1778				if ((this._LastLoginDate != value))
1779				{
1780					this.OnLastLoginDateChanging(value);
1781					this.SendPropertyChanging();
1782					this._LastLoginDate = value;
1783					this.SendPropertyChanged("LastLoginDate");
1784					this.OnLastLoginDateChanged();
1785				}
1786			}
1787		}
1788		
1789		[Column(Storage="_LastPasswordChangedDate", DbType="DateTime NOT NULL")]
1790		public System.DateTime LastPasswordChangedDate
1791		{
1792			get
1793			{
1794				return this._LastPasswordChangedDate;
1795			}
1796			set
1797			{
1798				if ((this._LastPasswordChangedDate != value))
1799				{
1800					this.OnLastPasswordChangedDateChanging(value);
1801					this.SendPropertyChanging();
1802					this._LastPasswordChangedDate = value;
1803					this.SendPropertyChanged("LastPasswordChangedDate");
1804					this.OnLastPasswordChangedDateChanged();
1805				}
1806			}
1807		}
1808		
1809		[Column(Storage="_LastLockoutDate", DbType="DateTime NOT NULL")]
1810		public System.DateTime LastLockoutDate
1811		{
1812			get
1813			{
1814				return this._LastLockoutDate;
1815			}
1816			set
1817			{
1818				if ((this._LastLockoutDate != value))
1819				{
1820					this.OnLastLockoutDateChanging(value);
1821					this.SendPropertyChanging();
1822					this._LastLockoutDate = value;
1823					this.SendPropertyChanged("LastLockoutDate");
1824					this.OnLastLockoutDateChanged();
1825				}
1826			}
1827		}
1828		
1829		[Column(Storage="_FailedPasswordAttemptCount", DbType="Int NOT NULL")]
1830		public int FailedPasswordAttemptCount
1831		{
1832			get
1833			{
1834				return this._FailedPasswordAttemptCount;
1835			}
1836			set
1837			{
1838				if ((this._FailedPasswordAttemptCount != value))
1839				{
1840					this.OnFailedPasswordAttemptCountChanging(value);
1841					this.SendPropertyChanging();
1842					this._FailedPasswordAttemptCount = value;
1843					this.SendPropertyChanged("FailedPasswordAttemptCount");
1844					this.OnFailedPasswordAttemptCountChanged();
1845				}
1846			}
1847		}
1848		
1849		[Column(Storage="_FailedPasswordAttemptWindowStart", DbType="DateTime NOT NULL")]
1850		public System.DateTime FailedPasswordAttemptWindowStart
1851		{
1852			get
1853			{
1854				return this._FailedPasswordAttemptWindowStart;
1855			}
1856			set
1857			{
1858				if ((this._FailedPasswordAttemptWindowStart != value))
1859				{
1860					this.OnFailedPasswordAttemptWindowStartChanging(value);
1861					this.SendPropertyChanging();
1862					this._FailedPasswordAttemptWindowStart = value;
1863					this.SendPropertyChanged("FailedPasswordAttemptWindowStart");
1864					this.OnFailedPasswordAttemptWindowStartChanged();
1865				}
1866			}
1867		}
1868		
1869		[Column(Storage="_FailedPasswordAnswerAttemptCount", DbType="Int NOT NULL")]
1870		public int FailedPasswordAnswerAttemptCount
1871		{
1872			get
1873			{
1874				return this._FailedPasswordAnswerAttemptCount;
1875			}
1876			set
1877			{
1878				if ((this._FailedPasswordAnswerAttemptCount != value))
1879				{
1880					this.OnFailedPasswordAnswerAttemptCountChanging(value);
1881					this.SendPropertyChanging();
1882					this._FailedPasswordAnswerAttemptCount = value;
1883					this.SendPropertyChanged("FailedPasswordAnswerAttemptCount");
1884					this.OnFailedPasswordAnswerAttemptCountChanged();
1885				}
1886			}
1887		}
1888		
1889		[Column(Storage="_FailedPasswordAnswerAttemptWindowStart", DbType="DateTime NOT NULL")]
1890		public System.DateTime FailedPasswordAnswerAttemptWindowStart
1891		{
1892			get
1893			{
1894				return this._FailedPasswordAnswerAttemptWindowStart;
1895			}
1896			set
1897			{
1898				if ((this._FailedPasswordAnswerAttemptWindowStart != value))
1899				{
1900					this.OnFailedPasswordAnswerAttemptWindowStartChanging(value);
1901					this.SendPropertyChanging();
1902					this._FailedPasswordAnswerAttemptWindowStart = value;
1903					this.SendPropertyChanged("FailedPasswordAnswerAttemptWindowStart");
1904					this.OnFailedPasswordAnswerAttemptWindowStartChanged();
1905				}
1906			}
1907		}
1908		
1909		[Column(Storage="_Comment", DbType="NText", UpdateCheck=UpdateCheck.Never)]
1910		public string Comment
1911		{
1912			get
1913			{
1914				return this._Comment;
1915			}
1916			set
1917			{
1918				if ((this._Comment != value))
1919				{
1920					this.OnCommentChanging(value);
1921					this.SendPropertyChanging();
1922					this._Comment = value;
1923					this.SendPropertyChanged("Comment");
1924					this.OnCommentChanged();
1925				}
1926			}
1927		}
1928		
1929		[Association(Name="aspnet_User_aspnet_Membership", Storage="_aspnet_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
1930		public aspnet_User aspnet_User
1931		{
1932			get
1933			{
1934				return this._aspnet_User.Entity;
1935			}
1936			set
1937			{
1938				aspnet_User previousValue = this._aspnet_User.Entity;
1939				if (((previousValue != value) 
1940							|| (this._aspnet_User.HasLoadedOrAssignedValue == false)))
1941				{
1942					this.SendPropertyChanging();
1943					if ((previousValue != null))
1944					{
1945						this._aspnet_User.Entity = null;
1946						previousValue.aspnet_Membership = null;
1947					}
1948					this._aspnet_User.Entity = value;
1949					if ((value != null))
1950					{
1951						value.aspnet_Membership = this;
1952						this._UserId = value.UserId;
1953					}
1954					else
1955					{
1956						this._UserId = default(System.Guid);
1957					}
1958					this.SendPropertyChanged("aspnet_User");
1959				}
1960			}
1961		}
1962		
1963		public event PropertyChangingEventHandler PropertyChanging;
1964		
1965		public event PropertyChangedEventHandler PropertyChanged;
1966		
1967		protected virtual void SendPropertyChanging()
1968		{
1969			if ((this.PropertyChanging != null))
1970			{
1971				this.PropertyChanging(this, emptyChangingEventArgs);
1972			}
1973		}
1974		
1975		protected virtual void SendPropertyChanged(String propertyName)
1976		{
1977			if ((this.PropertyChanged != null))
1978			{
1979				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1980			}
1981		}
1982	}
1983}
1984#pragma warning restore 1591