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