PageRenderTime 54ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/TailspinTravel-Ria/code/Begin/MSTravel/MSTravel.Web/Models/TailSpin.Designer.cs

#
C# | 1596 lines | 1189 code | 111 blank | 296 comment | 62 complexity | 631f28729c50a76789d818757d41cec7 MD5 | raw file
Possible License(s): CC-BY-SA-3.0

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

  1. // ----------------------------------------------------------------------------------
  2. // Microsoft Developer & Platform Evangelism
  3. //
  4. // Copyright (c) Microsoft Corporation. All rights reserved.
  5. //
  6. // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
  7. // EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
  8. // OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
  9. // ----------------------------------------------------------------------------------
  10. // The example companies, organizations, products, domain names,
  11. // e-mail addresses, logos, people, places, and events depicted
  12. // herein are fictitious. No association with any real company,
  13. // organization, product, domain name, email address, logo, person,
  14. // places, or events is intended or should be inferred.
  15. // ----------------------------------------------------------------------------------
  16. //------------------------------------------------------------------------------
  17. // <auto-generated>
  18. // This code was generated from a template.
  19. //
  20. // Manual changes to this file may cause unexpected behavior in your application.
  21. // Manual changes to this file will be overwritten if the code is regenerated.
  22. // </auto-generated>
  23. //------------------------------------------------------------------------------
  24. using System;
  25. using System.Data.Objects;
  26. using System.Data.Objects.DataClasses;
  27. using System.Data.EntityClient;
  28. using System.ComponentModel;
  29. using System.Xml.Serialization;
  30. using System.Runtime.Serialization;
  31. [assembly: EdmSchemaAttribute()]
  32. #region EDM Relationship Metadata
  33. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "FK__Flights__ArrivalAirportCode__3a5df8ba", "Airports", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Microsoft.Samples.MSTravel.Web.Models.Airport), "Flights", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.Flight), true)]
  34. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "FK__Flights__DepartureAirportCode__6915c204", "Airports", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Microsoft.Samples.MSTravel.Web.Models.Airport), "Flights", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.Flight), true)]
  35. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "FK__CarRentals__PickupPlaceId__67933c27", "CarRentalPlaces", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Microsoft.Samples.MSTravel.Web.Models.CarRentalPlace), "CarRentals", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.CarRental), true)]
  36. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentalPlaces", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Microsoft.Samples.MSTravel.Web.Models.CarRentalPlace), "CarRentals", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.CarRental), true)]
  37. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "FK__CarRentals________Id__25f36f99", "UserItineraries", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Microsoft.Samples.MSTravel.Web.Models.UserItinerary), "CarRentals", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Microsoft.Samples.MSTravel.Web.Models.CarRental), true)]
  38. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "FK__CarRentals__VehicleTypeId__21f99a8c", "VehicleTypes", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Microsoft.Samples.MSTravel.Web.Models.VehicleType), "CarRentals", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.CarRental), true)]
  39. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "FK__Flights__FlightBookingId__71c4307a", "FlightBookings", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Microsoft.Samples.MSTravel.Web.Models.FlightBooking), "Flights", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.Flight), true)]
  40. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "FK_UserItineraries_FlightBookings", "FlightBookings", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Microsoft.Samples.MSTravel.Web.Models.FlightBooking), "UserItineraries", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.UserItinerary), true)]
  41. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "FK__HotelReservations________Id__60a20a7e", "UserItineraries", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Microsoft.Samples.MSTravel.Web.Models.UserItinerary), "HotelReservations", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Microsoft.Samples.MSTravel.Web.Models.HotelReservation), true)]
  42. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "FK__HotelReservations___HotelId__440acf95", "Hotels", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Microsoft.Samples.MSTravel.Web.Models.Hotel), "HotelReservations", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.HotelReservation), true)]
  43. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "FK__HotelReservations__RoomTypeId__3c133704", "HotelRoomTypes", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Microsoft.Samples.MSTravel.Web.Models.HotelRoomType), "HotelReservations", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.HotelReservation), true)]
  44. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "CarRentalAdditionals", "CarRentals", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.CarRental), "VehicleAdditionals", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.VehicleAdditional))]
  45. [assembly: EdmRelationshipAttribute("TailspinTravelModel", "HotelReservationOfferings", "HotelOfferings", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.HotelOffering), "HotelReservations", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Microsoft.Samples.MSTravel.Web.Models.HotelReservation))]
  46. #endregion
  47. namespace Microsoft.Samples.MSTravel.Web.Models
  48. {
  49. #region Contexts
  50. /// <summary>
  51. /// No Metadata Documentation available.
  52. /// </summary>
  53. public partial class TailspinTravelEntities : ObjectContext
  54. {
  55. #region Constructors
  56. /// <summary>
  57. /// Initializes a new TailspinTravelEntities object using the connection string found in the 'TailspinTravelEntities' section of the application configuration file.
  58. /// </summary>
  59. public TailspinTravelEntities() : base("name=TailspinTravelEntities", "TailspinTravelEntities")
  60. {
  61. this.ContextOptions.LazyLoadingEnabled = true;
  62. OnContextCreated();
  63. }
  64. /// <summary>
  65. /// Initialize a new TailspinTravelEntities object.
  66. /// </summary>
  67. public TailspinTravelEntities(string connectionString) : base(connectionString, "TailspinTravelEntities")
  68. {
  69. this.ContextOptions.LazyLoadingEnabled = true;
  70. OnContextCreated();
  71. }
  72. /// <summary>
  73. /// Initialize a new TailspinTravelEntities object.
  74. /// </summary>
  75. public TailspinTravelEntities(EntityConnection connection) : base(connection, "TailspinTravelEntities")
  76. {
  77. this.ContextOptions.LazyLoadingEnabled = true;
  78. OnContextCreated();
  79. }
  80. #endregion
  81. #region Partial Methods
  82. partial void OnContextCreated();
  83. #endregion
  84. #region ObjectSet Properties
  85. /// <summary>
  86. /// No Metadata Documentation available.
  87. /// </summary>
  88. public ObjectSet<Airport> Airports
  89. {
  90. get
  91. {
  92. if ((_Airports == null))
  93. {
  94. _Airports = base.CreateObjectSet<Airport>("Airports");
  95. }
  96. return _Airports;
  97. }
  98. }
  99. private ObjectSet<Airport> _Airports;
  100. /// <summary>
  101. /// No Metadata Documentation available.
  102. /// </summary>
  103. public ObjectSet<CarRentalPlace> CarRentalPlaces
  104. {
  105. get
  106. {
  107. if ((_CarRentalPlaces == null))
  108. {
  109. _CarRentalPlaces = base.CreateObjectSet<CarRentalPlace>("CarRentalPlaces");
  110. }
  111. return _CarRentalPlaces;
  112. }
  113. }
  114. private ObjectSet<CarRentalPlace> _CarRentalPlaces;
  115. /// <summary>
  116. /// No Metadata Documentation available.
  117. /// </summary>
  118. public ObjectSet<CarRental> CarRentals
  119. {
  120. get
  121. {
  122. if ((_CarRentals == null))
  123. {
  124. _CarRentals = base.CreateObjectSet<CarRental>("CarRentals");
  125. }
  126. return _CarRentals;
  127. }
  128. }
  129. private ObjectSet<CarRental> _CarRentals;
  130. /// <summary>
  131. /// No Metadata Documentation available.
  132. /// </summary>
  133. public ObjectSet<FlightBooking> FlightBookings
  134. {
  135. get
  136. {
  137. if ((_FlightBookings == null))
  138. {
  139. _FlightBookings = base.CreateObjectSet<FlightBooking>("FlightBookings");
  140. }
  141. return _FlightBookings;
  142. }
  143. }
  144. private ObjectSet<FlightBooking> _FlightBookings;
  145. /// <summary>
  146. /// No Metadata Documentation available.
  147. /// </summary>
  148. public ObjectSet<Flight> Flights
  149. {
  150. get
  151. {
  152. if ((_Flights == null))
  153. {
  154. _Flights = base.CreateObjectSet<Flight>("Flights");
  155. }
  156. return _Flights;
  157. }
  158. }
  159. private ObjectSet<Flight> _Flights;
  160. /// <summary>
  161. /// No Metadata Documentation available.
  162. /// </summary>
  163. public ObjectSet<HotelOffering> HotelOfferings
  164. {
  165. get
  166. {
  167. if ((_HotelOfferings == null))
  168. {
  169. _HotelOfferings = base.CreateObjectSet<HotelOffering>("HotelOfferings");
  170. }
  171. return _HotelOfferings;
  172. }
  173. }
  174. private ObjectSet<HotelOffering> _HotelOfferings;
  175. /// <summary>
  176. /// No Metadata Documentation available.
  177. /// </summary>
  178. public ObjectSet<HotelReservation> HotelReservations
  179. {
  180. get
  181. {
  182. if ((_HotelReservations == null))
  183. {
  184. _HotelReservations = base.CreateObjectSet<HotelReservation>("HotelReservations");
  185. }
  186. return _HotelReservations;
  187. }
  188. }
  189. private ObjectSet<HotelReservation> _HotelReservations;
  190. /// <summary>
  191. /// No Metadata Documentation available.
  192. /// </summary>
  193. public ObjectSet<HotelRoomType> HotelRoomTypes
  194. {
  195. get
  196. {
  197. if ((_HotelRoomTypes == null))
  198. {
  199. _HotelRoomTypes = base.CreateObjectSet<HotelRoomType>("HotelRoomTypes");
  200. }
  201. return _HotelRoomTypes;
  202. }
  203. }
  204. private ObjectSet<HotelRoomType> _HotelRoomTypes;
  205. /// <summary>
  206. /// No Metadata Documentation available.
  207. /// </summary>
  208. public ObjectSet<Hotel> Hotels
  209. {
  210. get
  211. {
  212. if ((_Hotels == null))
  213. {
  214. _Hotels = base.CreateObjectSet<Hotel>("Hotels");
  215. }
  216. return _Hotels;
  217. }
  218. }
  219. private ObjectSet<Hotel> _Hotels;
  220. /// <summary>
  221. /// No Metadata Documentation available.
  222. /// </summary>
  223. public ObjectSet<UserItinerary> UserItineraries
  224. {
  225. get
  226. {
  227. if ((_UserItineraries == null))
  228. {
  229. _UserItineraries = base.CreateObjectSet<UserItinerary>("UserItineraries");
  230. }
  231. return _UserItineraries;
  232. }
  233. }
  234. private ObjectSet<UserItinerary> _UserItineraries;
  235. /// <summary>
  236. /// No Metadata Documentation available.
  237. /// </summary>
  238. public ObjectSet<VehicleAdditional> VehicleAdditionals
  239. {
  240. get
  241. {
  242. if ((_VehicleAdditionals == null))
  243. {
  244. _VehicleAdditionals = base.CreateObjectSet<VehicleAdditional>("VehicleAdditionals");
  245. }
  246. return _VehicleAdditionals;
  247. }
  248. }
  249. private ObjectSet<VehicleAdditional> _VehicleAdditionals;
  250. /// <summary>
  251. /// No Metadata Documentation available.
  252. /// </summary>
  253. public ObjectSet<VehicleType> VehicleTypes
  254. {
  255. get
  256. {
  257. if ((_VehicleTypes == null))
  258. {
  259. _VehicleTypes = base.CreateObjectSet<VehicleType>("VehicleTypes");
  260. }
  261. return _VehicleTypes;
  262. }
  263. }
  264. private ObjectSet<VehicleType> _VehicleTypes;
  265. #endregion
  266. #region AddTo Methods
  267. /// <summary>
  268. /// Deprecated Method for adding a new object to the Airports EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  269. /// </summary>
  270. public void AddToAirports(Airport airport)
  271. {
  272. base.AddObject("Airports", airport);
  273. }
  274. /// <summary>
  275. /// Deprecated Method for adding a new object to the CarRentalPlaces EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  276. /// </summary>
  277. public void AddToCarRentalPlaces(CarRentalPlace carRentalPlace)
  278. {
  279. base.AddObject("CarRentalPlaces", carRentalPlace);
  280. }
  281. /// <summary>
  282. /// Deprecated Method for adding a new object to the CarRentals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  283. /// </summary>
  284. public void AddToCarRentals(CarRental carRental)
  285. {
  286. base.AddObject("CarRentals", carRental);
  287. }
  288. /// <summary>
  289. /// Deprecated Method for adding a new object to the FlightBookings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  290. /// </summary>
  291. public void AddToFlightBookings(FlightBooking flightBooking)
  292. {
  293. base.AddObject("FlightBookings", flightBooking);
  294. }
  295. /// <summary>
  296. /// Deprecated Method for adding a new object to the Flights EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  297. /// </summary>
  298. public void AddToFlights(Flight flight)
  299. {
  300. base.AddObject("Flights", flight);
  301. }
  302. /// <summary>
  303. /// Deprecated Method for adding a new object to the HotelOfferings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  304. /// </summary>
  305. public void AddToHotelOfferings(HotelOffering hotelOffering)
  306. {
  307. base.AddObject("HotelOfferings", hotelOffering);
  308. }
  309. /// <summary>
  310. /// Deprecated Method for adding a new object to the HotelReservations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  311. /// </summary>
  312. public void AddToHotelReservations(HotelReservation hotelReservation)
  313. {
  314. base.AddObject("HotelReservations", hotelReservation);
  315. }
  316. /// <summary>
  317. /// Deprecated Method for adding a new object to the HotelRoomTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  318. /// </summary>
  319. public void AddToHotelRoomTypes(HotelRoomType hotelRoomType)
  320. {
  321. base.AddObject("HotelRoomTypes", hotelRoomType);
  322. }
  323. /// <summary>
  324. /// Deprecated Method for adding a new object to the Hotels EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  325. /// </summary>
  326. public void AddToHotels(Hotel hotel)
  327. {
  328. base.AddObject("Hotels", hotel);
  329. }
  330. /// <summary>
  331. /// Deprecated Method for adding a new object to the UserItineraries EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  332. /// </summary>
  333. public void AddToUserItineraries(UserItinerary userItinerary)
  334. {
  335. base.AddObject("UserItineraries", userItinerary);
  336. }
  337. /// <summary>
  338. /// Deprecated Method for adding a new object to the VehicleAdditionals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  339. /// </summary>
  340. public void AddToVehicleAdditionals(VehicleAdditional vehicleAdditional)
  341. {
  342. base.AddObject("VehicleAdditionals", vehicleAdditional);
  343. }
  344. /// <summary>
  345. /// Deprecated Method for adding a new object to the VehicleTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  346. /// </summary>
  347. public void AddToVehicleTypes(VehicleType vehicleType)
  348. {
  349. base.AddObject("VehicleTypes", vehicleType);
  350. }
  351. #endregion
  352. }
  353. #endregion
  354. #region Entities
  355. /// <summary>
  356. /// No Metadata Documentation available.
  357. /// </summary>
  358. [EdmEntityTypeAttribute(NamespaceName="TailspinTravelModel", Name="Airport")]
  359. [Serializable()]
  360. [DataContractAttribute(IsReference=true)]
  361. public partial class Airport : EntityObject
  362. {
  363. #region Factory Method
  364. /// <summary>
  365. /// Create a new Airport object.
  366. /// </summary>
  367. /// <param name="airportCode">Initial value of the AirportCode property.</param>
  368. /// <param name="displayName">Initial value of the DisplayName property.</param>
  369. public static Airport CreateAirport(global::System.String airportCode, global::System.String displayName)
  370. {
  371. Airport airport = new Airport();
  372. airport.AirportCode = airportCode;
  373. airport.DisplayName = displayName;
  374. return airport;
  375. }
  376. #endregion
  377. #region Primitive Properties
  378. /// <summary>
  379. /// No Metadata Documentation available.
  380. /// </summary>
  381. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  382. [DataMemberAttribute()]
  383. public global::System.String AirportCode
  384. {
  385. get
  386. {
  387. return _AirportCode;
  388. }
  389. set
  390. {
  391. if (_AirportCode != value)
  392. {
  393. OnAirportCodeChanging(value);
  394. ReportPropertyChanging("AirportCode");
  395. _AirportCode = StructuralObject.SetValidValue(value, false);
  396. ReportPropertyChanged("AirportCode");
  397. OnAirportCodeChanged();
  398. }
  399. }
  400. }
  401. private global::System.String _AirportCode;
  402. partial void OnAirportCodeChanging(global::System.String value);
  403. partial void OnAirportCodeChanged();
  404. /// <summary>
  405. /// No Metadata Documentation available.
  406. /// </summary>
  407. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  408. [DataMemberAttribute()]
  409. public global::System.String DisplayName
  410. {
  411. get
  412. {
  413. return _DisplayName;
  414. }
  415. set
  416. {
  417. OnDisplayNameChanging(value);
  418. ReportPropertyChanging("DisplayName");
  419. _DisplayName = StructuralObject.SetValidValue(value, false);
  420. ReportPropertyChanged("DisplayName");
  421. OnDisplayNameChanged();
  422. }
  423. }
  424. private global::System.String _DisplayName;
  425. partial void OnDisplayNameChanging(global::System.String value);
  426. partial void OnDisplayNameChanged();
  427. #endregion
  428. #region Navigation Properties
  429. /// <summary>
  430. /// No Metadata Documentation available.
  431. /// </summary>
  432. [XmlIgnoreAttribute()]
  433. [SoapIgnoreAttribute()]
  434. [DataMemberAttribute()]
  435. [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__Flights__ArrivalAirportCode__3a5df8ba", "Flights")]
  436. public EntityCollection<Flight> Flights
  437. {
  438. get
  439. {
  440. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Flight>("TailspinTravelModel.FK__Flights__ArrivalAirportCode__3a5df8ba", "Flights");
  441. }
  442. set
  443. {
  444. if ((value != null))
  445. {
  446. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Flight>("TailspinTravelModel.FK__Flights__ArrivalAirportCode__3a5df8ba", "Flights", value);
  447. }
  448. }
  449. }
  450. /// <summary>
  451. /// No Metadata Documentation available.
  452. /// </summary>
  453. [XmlIgnoreAttribute()]
  454. [SoapIgnoreAttribute()]
  455. [DataMemberAttribute()]
  456. [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__Flights__DepartureAirportCode__6915c204", "Flights")]
  457. public EntityCollection<Flight> Flights1
  458. {
  459. get
  460. {
  461. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Flight>("TailspinTravelModel.FK__Flights__DepartureAirportCode__6915c204", "Flights");
  462. }
  463. set
  464. {
  465. if ((value != null))
  466. {
  467. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Flight>("TailspinTravelModel.FK__Flights__DepartureAirportCode__6915c204", "Flights", value);
  468. }
  469. }
  470. }
  471. #endregion
  472. }
  473. /// <summary>
  474. /// No Metadata Documentation available.
  475. /// </summary>
  476. [EdmEntityTypeAttribute(NamespaceName="TailspinTravelModel", Name="CarRental")]
  477. [Serializable()]
  478. [DataContractAttribute(IsReference=true)]
  479. public partial class CarRental : EntityObject
  480. {
  481. #region Factory Method
  482. /// <summary>
  483. /// Create a new CarRental object.
  484. /// </summary>
  485. /// <param name="id">Initial value of the Id property.</param>
  486. /// <param name="rentalStart">Initial value of the RentalStart property.</param>
  487. /// <param name="rentalEnd">Initial value of the RentalEnd property.</param>
  488. /// <param name="pickupPlaceId">Initial value of the PickupPlaceId property.</param>
  489. /// <param name="returnPlaceId">Initial value of the ReturnPlaceId property.</param>
  490. /// <param name="vehicleTypeId">Initial value of the VehicleTypeId property.</param>
  491. public static CarRental CreateCarRental(global::System.Guid id, global::System.DateTime rentalStart, global::System.DateTime rentalEnd, global::System.Guid pickupPlaceId, global::System.Guid returnPlaceId, global::System.Guid vehicleTypeId)
  492. {
  493. CarRental carRental = new CarRental();
  494. carRental.Id = id;
  495. carRental.RentalStart = rentalStart;
  496. carRental.RentalEnd = rentalEnd;
  497. carRental.PickupPlaceId = pickupPlaceId;
  498. carRental.ReturnPlaceId = returnPlaceId;
  499. carRental.VehicleTypeId = vehicleTypeId;
  500. return carRental;
  501. }
  502. #endregion
  503. #region Primitive Properties
  504. /// <summary>
  505. /// No Metadata Documentation available.
  506. /// </summary>
  507. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  508. [DataMemberAttribute()]
  509. public global::System.Guid Id
  510. {
  511. get
  512. {
  513. return _Id;
  514. }
  515. set
  516. {
  517. if (_Id != value)
  518. {
  519. OnIdChanging(value);
  520. ReportPropertyChanging("Id");
  521. _Id = StructuralObject.SetValidValue(value);
  522. ReportPropertyChanged("Id");
  523. OnIdChanged();
  524. }
  525. }
  526. }
  527. private global::System.Guid _Id;
  528. partial void OnIdChanging(global::System.Guid value);
  529. partial void OnIdChanged();
  530. /// <summary>
  531. /// No Metadata Documentation available.
  532. /// </summary>
  533. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  534. [DataMemberAttribute()]
  535. public global::System.DateTime RentalStart
  536. {
  537. get
  538. {
  539. return _RentalStart;
  540. }
  541. set
  542. {
  543. OnRentalStartChanging(value);
  544. ReportPropertyChanging("RentalStart");
  545. _RentalStart = StructuralObject.SetValidValue(value);
  546. ReportPropertyChanged("RentalStart");
  547. OnRentalStartChanged();
  548. }
  549. }
  550. private global::System.DateTime _RentalStart;
  551. partial void OnRentalStartChanging(global::System.DateTime value);
  552. partial void OnRentalStartChanged();
  553. /// <summary>
  554. /// No Metadata Documentation available.
  555. /// </summary>
  556. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  557. [DataMemberAttribute()]
  558. public global::System.DateTime RentalEnd
  559. {
  560. get
  561. {
  562. return _RentalEnd;
  563. }
  564. set
  565. {
  566. OnRentalEndChanging(value);
  567. ReportPropertyChanging("RentalEnd");
  568. _RentalEnd = StructuralObject.SetValidValue(value);
  569. ReportPropertyChanged("RentalEnd");
  570. OnRentalEndChanged();
  571. }
  572. }
  573. private global::System.DateTime _RentalEnd;
  574. partial void OnRentalEndChanging(global::System.DateTime value);
  575. partial void OnRentalEndChanged();
  576. /// <summary>
  577. /// No Metadata Documentation available.
  578. /// </summary>
  579. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  580. [DataMemberAttribute()]
  581. public global::System.Guid PickupPlaceId
  582. {
  583. get
  584. {
  585. return _PickupPlaceId;
  586. }
  587. set
  588. {
  589. OnPickupPlaceIdChanging(value);
  590. ReportPropertyChanging("PickupPlaceId");
  591. _PickupPlaceId = StructuralObject.SetValidValue(value);
  592. ReportPropertyChanged("PickupPlaceId");
  593. OnPickupPlaceIdChanged();
  594. }
  595. }
  596. private global::System.Guid _PickupPlaceId;
  597. partial void OnPickupPlaceIdChanging(global::System.Guid value);
  598. partial void OnPickupPlaceIdChanged();
  599. /// <summary>
  600. /// No Metadata Documentation available.
  601. /// </summary>
  602. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  603. [DataMemberAttribute()]
  604. public global::System.Guid ReturnPlaceId
  605. {
  606. get
  607. {
  608. return _ReturnPlaceId;
  609. }
  610. set
  611. {
  612. OnReturnPlaceIdChanging(value);
  613. ReportPropertyChanging("ReturnPlaceId");
  614. _ReturnPlaceId = StructuralObject.SetValidValue(value);
  615. ReportPropertyChanged("ReturnPlaceId");
  616. OnReturnPlaceIdChanged();
  617. }
  618. }
  619. private global::System.Guid _ReturnPlaceId;
  620. partial void OnReturnPlaceIdChanging(global::System.Guid value);
  621. partial void OnReturnPlaceIdChanged();
  622. /// <summary>
  623. /// No Metadata Documentation available.
  624. /// </summary>
  625. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  626. [DataMemberAttribute()]
  627. public global::System.Guid VehicleTypeId
  628. {
  629. get
  630. {
  631. return _VehicleTypeId;
  632. }
  633. set
  634. {
  635. OnVehicleTypeIdChanging(value);
  636. ReportPropertyChanging("VehicleTypeId");
  637. _VehicleTypeId = StructuralObject.SetValidValue(value);
  638. ReportPropertyChanged("VehicleTypeId");
  639. OnVehicleTypeIdChanged();
  640. }
  641. }
  642. private global::System.Guid _VehicleTypeId;
  643. partial void OnVehicleTypeIdChanging(global::System.Guid value);
  644. partial void OnVehicleTypeIdChanged();
  645. #endregion
  646. #region Navigation Properties
  647. /// <summary>
  648. /// No Metadata Documentation available.
  649. /// </summary>
  650. [XmlIgnoreAttribute()]
  651. [SoapIgnoreAttribute()]
  652. [DataMemberAttribute()]
  653. [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals__PickupPlaceId__67933c27", "CarRentalPlaces")]
  654. public CarRentalPlace CarRentalPlace
  655. {
  656. get
  657. {
  658. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentalPlaces").Value;
  659. }
  660. set
  661. {
  662. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentalPlaces").Value = value;
  663. }
  664. }
  665. /// <summary>
  666. /// No Metadata Documentation available.
  667. /// </summary>
  668. [BrowsableAttribute(false)]
  669. [DataMemberAttribute()]
  670. public EntityReference<CarRentalPlace> CarRentalPlaceReference
  671. {
  672. get
  673. {
  674. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentalPlaces");
  675. }
  676. set
  677. {
  678. if ((value != null))
  679. {
  680. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentalPlaces", value);
  681. }
  682. }
  683. }
  684. /// <summary>
  685. /// No Metadata Documentation available.
  686. /// </summary>
  687. [XmlIgnoreAttribute()]
  688. [SoapIgnoreAttribute()]
  689. [DataMemberAttribute()]
  690. [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentalPlaces")]
  691. public CarRentalPlace CarRentalPlace1
  692. {
  693. get
  694. {
  695. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentalPlaces").Value;
  696. }
  697. set
  698. {
  699. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentalPlaces").Value = value;
  700. }
  701. }
  702. /// <summary>
  703. /// No Metadata Documentation available.
  704. /// </summary>
  705. [BrowsableAttribute(false)]
  706. [DataMemberAttribute()]
  707. public EntityReference<CarRentalPlace> CarRentalPlace1Reference
  708. {
  709. get
  710. {
  711. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentalPlaces");
  712. }
  713. set
  714. {
  715. if ((value != null))
  716. {
  717. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentalPlaces", value);
  718. }
  719. }
  720. }
  721. /// <summary>
  722. /// No Metadata Documentation available.
  723. /// </summary>
  724. [XmlIgnoreAttribute()]
  725. [SoapIgnoreAttribute()]
  726. [DataMemberAttribute()]
  727. [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals________Id__25f36f99", "UserItineraries")]
  728. public UserItinerary UserItinerary
  729. {
  730. get
  731. {
  732. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<UserItinerary>("TailspinTravelModel.FK__CarRentals________Id__25f36f99", "UserItineraries").Value;
  733. }
  734. set
  735. {
  736. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<UserItinerary>("TailspinTravelModel.FK__CarRentals________Id__25f36f99", "UserItineraries").Value = value;
  737. }
  738. }
  739. /// <summary>
  740. /// No Metadata Documentation available.
  741. /// </summary>
  742. [BrowsableAttribute(false)]
  743. [DataMemberAttribute()]
  744. public EntityReference<UserItinerary> UserItineraryReference
  745. {
  746. get
  747. {
  748. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<UserItinerary>("TailspinTravelModel.FK__CarRentals________Id__25f36f99", "UserItineraries");
  749. }
  750. set
  751. {
  752. if ((value != null))
  753. {
  754. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<UserItinerary>("TailspinTravelModel.FK__CarRentals________Id__25f36f99", "UserItineraries", value);
  755. }
  756. }
  757. }
  758. /// <summary>
  759. /// No Metadata Documentation available.
  760. /// </summary>
  761. [XmlIgnoreAttribute()]
  762. [SoapIgnoreAttribute()]
  763. [DataMemberAttribute()]
  764. [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals__VehicleTypeId__21f99a8c", "VehicleTypes")]
  765. public VehicleType VehicleType
  766. {
  767. get
  768. {
  769. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VehicleType>("TailspinTravelModel.FK__CarRentals__VehicleTypeId__21f99a8c", "VehicleTypes").Value;
  770. }
  771. set
  772. {
  773. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VehicleType>("TailspinTravelModel.FK__CarRentals__VehicleTypeId__21f99a8c", "VehicleTypes").Value = value;
  774. }
  775. }
  776. /// <summary>
  777. /// No Metadata Documentation available.
  778. /// </summary>
  779. [BrowsableAttribute(false)]
  780. [DataMemberAttribute()]
  781. public EntityReference<VehicleType> VehicleTypeReference
  782. {
  783. get
  784. {
  785. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VehicleType>("TailspinTravelModel.FK__CarRentals__VehicleTypeId__21f99a8c", "VehicleTypes");
  786. }
  787. set
  788. {
  789. if ((value != null))
  790. {
  791. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<VehicleType>("TailspinTravelModel.FK__CarRentals__VehicleTypeId__21f99a8c", "VehicleTypes", value);
  792. }
  793. }
  794. }
  795. /// <summary>
  796. /// No Metadata Documentation available.
  797. /// </summary>
  798. [XmlIgnoreAttribute()]
  799. [SoapIgnoreAttribute()]
  800. [DataMemberAttribute()]
  801. [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "CarRentalAdditionals", "VehicleAdditionals")]
  802. public EntityCollection<VehicleAdditional> VehicleAdditionals
  803. {
  804. get
  805. {
  806. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<VehicleAdditional>("TailspinTravelModel.CarRentalAdditionals", "VehicleAdditionals");
  807. }
  808. set
  809. {
  810. if ((value != null))
  811. {
  812. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<VehicleAdditional>("TailspinTravelModel.CarRentalAdditionals", "VehicleAdditionals", value);
  813. }
  814. }
  815. }
  816. #endregion
  817. }
  818. /// <summary>
  819. /// No Metadata Documentation available.
  820. /// </summary>
  821. [EdmEntityTypeAttribute(NamespaceName="TailspinTravelModel", Name="CarRentalPlace")]
  822. [Serializable()]
  823. [DataContractAttribute(IsReference=true)]
  824. public partial class CarRentalPlace : EntityObject
  825. {
  826. #region Factory Method
  827. /// <summary>
  828. /// Create a new CarRentalPlace object.
  829. /// </summary>
  830. /// <param name="id">Initial value of the Id property.</param>
  831. /// <param name="name">Initial value of the Name property.</param>
  832. public static CarRentalPlace CreateCarRentalPlace(global::System.Guid id, global::System.String name)
  833. {
  834. CarRentalPlace carRentalPlace = new CarRentalPlace();
  835. carRentalPlace.Id = id;
  836. carRentalPlace.Name = name;
  837. return carRentalPlace;
  838. }
  839. #endregion
  840. #region Primitive Properties
  841. /// <summary>
  842. /// No Metadata Documentation available.
  843. /// </summary>
  844. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  845. [DataMemberAttribute()]
  846. public global::System.Guid Id
  847. {
  848. get
  849. {
  850. return _Id;
  851. }
  852. set
  853. {
  854. if (_Id != value)
  855. {
  856. OnIdChanging(value);
  857. ReportPropertyChanging("Id");
  858. _Id = StructuralObject.SetValidValue(value);
  859. ReportPropertyChanged("Id");
  860. OnIdChanged();
  861. }
  862. }
  863. }
  864. private global::System.Guid _Id;
  865. partial void OnIdChanging(global::System.Guid value);
  866. partial void OnIdChanged();
  867. /// <summary>
  868. /// No Metadata Documentation available.
  869. /// </summary>
  870. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  871. [DataMemberAttribute()]
  872. public global::System.String Name
  873. {
  874. get
  875. {
  876. return _Name;
  877. }
  878. set
  879. {
  880. OnNameChanging(value);
  881. ReportPropertyChanging("Name");
  882. _Name = StructuralObject.SetValidValue(value, false);
  883. ReportPropertyChanged("Name");
  884. OnNameChanged();
  885. }
  886. }
  887. private global::System.String _Name;
  888. partial void OnNameChanging(global::System.String value);
  889. partial void OnNameChanged();
  890. #endregion
  891. #region Navigation Properties
  892. /// <summary>
  893. /// No Metadata Documentation available.
  894. /// </summary>
  895. [XmlIgnoreAttribute()]
  896. [SoapIgnoreAttribute()]
  897. [DataMemberAttribute()]
  898. [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals__PickupPlaceId__67933c27", "CarRentals")]
  899. public EntityCollection<CarRental> CarRentals
  900. {
  901. get
  902. {
  903. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CarRental>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentals");
  904. }
  905. set
  906. {
  907. if ((value != null))
  908. {
  909. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CarRental>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentals", value);
  910. }
  911. }
  912. }
  913. /// <summary>
  914. /// No Metadata Documentation available.
  915. /// </summary>
  916. [XmlIgnoreAttribute()]
  917. [SoapIgnoreAttribute()]
  918. [DataMemberAttribute()]
  919. [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentals")]
  920. public EntityCollection<CarRental> CarRentals1
  921. {
  922. get
  923. {
  924. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CarRental>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentals");
  925. }
  926. set
  927. {
  928. if ((value != null))
  929. {
  930. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CarRental>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentals", value);
  931. }
  932. }
  933. }
  934. #endregion
  935. }
  936. /// <summary>
  937. /// No Metadata Documentation available.
  938. /// </summary>
  939. [EdmEntityTypeAttribute(NamespaceName="TailspinTravelModel", Name="Flight")]
  940. [Serializable()]
  941. [DataContractAttribute(IsReference=true)]
  942. public partial class Flight : EntityObject
  943. {
  944. #region Factory Method
  945. /// <summary>
  946. /// Create a new Flight object.
  947. /// </summary>
  948. /// <param name="id">Initial value of the Id property.</param>
  949. /// <param name="flightBookingId">Initial value of the FlightBookingId property.</param>
  950. /// <param name="order">Initial value of the Order property.</param>
  951. /// <param name="airplaneType">Initial value of the AirplaneType property.</param>
  952. /// <param name="airline">Initial value of the Airline property.</param>
  953. /// <param name="class">Initial value of the Class property.</param>
  954. /// <param name="miles">Initial value of the Miles property.</param>
  955. /// <param name="departureTime">Initial value of the DepartureTime property.</param>
  956. /// <param name="arrivalTime">Initial value of the ArrivalTime property.</param>
  957. /// <param name="departureAirportCode">Initial value of the DepartureAirportCode property.</param>
  958. /// <param name="arrivalAirportCode">Initial value of the ArrivalAirportCode property.</param>
  959. public static Flight CreateFlight(global::System.Guid id, global::System.Guid flightBookingId, global::System.Int32 order, global::System.String airplaneType, global::System.String airline, global::System.String @class, global::System.Int32 miles, global::System.Int32 departureTime, global::System.Int32 arrivalTime, global::System.String departureAirportCode, global::System.String arrivalAirportCode)
  960. {
  961. Flight flight = new Flight();
  962. flight.Id = id;
  963. flight.FlightBookingId = flightBookingId;
  964. flight.Order = order;
  965. flight.AirplaneType = airplaneType;
  966. flight.Airline = airline;
  967. flight.Class = @class;
  968. flight.Miles = miles;
  969. flight.DepartureTime = departureTime;
  970. flight.ArrivalTime = arrivalTime;
  971. flight.DepartureAirportCode = departureAirportCode;
  972. flight.ArrivalAirportCode = arrivalAirportCode;
  973. return flight;
  974. }
  975. #endregion
  976. #region Primitive Properties
  977. /// <summary>
  978. /// No Metadata Documentation available.
  979. /// </summary>
  980. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  981. [DataMemberAttribute()]
  982. public global::System.Guid Id
  983. {
  984. get
  985. {
  986. return _Id;
  987. }
  988. set
  989. {
  990. if (_Id != value)
  991. {
  992. OnIdChanging(value);
  993. ReportPropertyChanging("Id");
  994. _Id = StructuralObject.SetValidValue(value);
  995. ReportPropertyChanged("Id");
  996. OnIdChanged();
  997. }
  998. }
  999. }
  1000. private global::System.Guid _Id;
  1001. partial void OnIdChanging(global::System.Guid value);
  1002. partial void OnIdChanged();
  1003. /// <summary>
  1004. /// No Metadata Documentation available.
  1005. /// </summary>
  1006. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1007. [DataMemberAttribute()]
  1008. public global::System.Guid FlightBookingId
  1009. {
  1010. get
  1011. {
  1012. return _FlightBookingId;
  1013. }
  1014. set
  1015. {
  1016. OnFlightBookingIdChanging(value);
  1017. ReportPropertyChanging("FlightBookingId");
  1018. _FlightBookingId = StructuralObject.SetValidValue(value);
  1019. ReportPropertyChanged("FlightBookingId");
  1020. OnFlightBookingIdChanged();
  1021. }
  1022. }
  1023. private global::System.Guid _FlightBookingId;
  1024. partial void OnFlightBookingIdChanging(global::System.Guid value);
  1025. partial void OnFlightBookingIdChanged();
  1026. /// <summary>
  1027. /// No Metadata Documentation available.
  1028. /// </summary>
  1029. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1030. [DataMemberAttribute()]
  1031. public global::System.Int32 Order
  1032. {
  1033. get
  1034. {
  1035. return _Order;
  1036. }
  1037. set
  1038. {
  1039. OnOrderChanging(value);
  1040. ReportPropertyChanging("Order");
  1041. _Order = StructuralObject.SetValidValue(value);
  1042. ReportPropertyChanged("Order");
  1043. OnOrderChanged();
  1044. }
  1045. }
  1046. private global::System.Int32 _Order;
  1047. partial void OnOrderChanging(global::System.Int32 value);
  1048. partial void OnOrderChanged();
  1049. /// <summary>
  1050. /// No Metadata Documentation available.
  1051. /// </summary>
  1052. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1053. [DataMemberAttribute()]
  1054. public global::System.String AirplaneType
  1055. {
  1056. get
  1057. {
  1058. return _AirplaneType;
  1059. }
  1060. set
  1061. {
  1062. OnAirplaneTypeChanging(value);
  1063. ReportPropertyChanging("AirplaneType");
  1064. _AirplaneType = StructuralObject.SetValidValue(value, false);
  1065. ReportPropertyChanged("AirplaneType");
  1066. OnAirplaneTypeChanged();
  1067. }
  1068. }
  1069. private global::System.String _AirplaneType;
  1070. partial void OnAirplaneTypeChanging(global::System.String value);
  1071. partial void OnAirplaneTypeChanged();
  1072. /// <summary>
  1073. /// No Metadata Documentation available.
  1074. /// </summary>
  1075. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1076. [DataMemberAttribute()]
  1077. public global::System.String Airline
  1078. {
  1079. get
  1080. {
  1081. return _Airline;
  1082. }
  1083. set
  1084. {
  1085. OnAirlineChanging(value);
  1086. ReportPropertyChanging("Airline");
  1087. _Airline = StructuralObject.SetValidValue(value, false);
  1088. ReportPropertyChanged("Airline");
  1089. OnAirlineChanged();
  1090. }
  1091. }
  1092. private global::System.String _Airline;
  1093. partial void OnAirlineChanging(global::System.String value);
  1094. partial void OnAirlineChanged();
  1095. /// <summary>
  1096. /// No Metadata Documentation available.
  1097. /// </summary>
  1098. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1099. [DataMemberAttribute()]
  1100. public global::System.String Class
  1101. {
  1102. get
  1103. {
  1104. return _Class;
  1105. }

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