/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
- // ----------------------------------------------------------------------------------
- // Microsoft Developer & Platform Evangelism
- //
- // Copyright (c) Microsoft Corporation. All rights reserved.
- //
- // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
- // EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
- // OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
- // ----------------------------------------------------------------------------------
- // The example companies, organizations, products, domain names,
- // e-mail addresses, logos, people, places, and events depicted
- // herein are fictitious. No association with any real company,
- // organization, product, domain name, email address, logo, person,
- // places, or events is intended or should be inferred.
- // ----------------------------------------------------------------------------------
-
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated from a template.
- //
- // Manual changes to this file may cause unexpected behavior in your application.
- // Manual changes to this file will be overwritten if the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
-
- using System;
- using System.Data.Objects;
- using System.Data.Objects.DataClasses;
- using System.Data.EntityClient;
- using System.ComponentModel;
- using System.Xml.Serialization;
- using System.Runtime.Serialization;
-
- [assembly: EdmSchemaAttribute()]
- #region EDM Relationship Metadata
-
- [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)]
- [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)]
- [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)]
- [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)]
- [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)]
- [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)]
- [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)]
- [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)]
- [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)]
- [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)]
- [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)]
- [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))]
- [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))]
-
- #endregion
-
- namespace Microsoft.Samples.MSTravel.Web.Models
- {
- #region Contexts
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public partial class TailspinTravelEntities : ObjectContext
- {
- #region Constructors
-
- /// <summary>
- /// Initializes a new TailspinTravelEntities object using the connection string found in the 'TailspinTravelEntities' section of the application configuration file.
- /// </summary>
- public TailspinTravelEntities() : base("name=TailspinTravelEntities", "TailspinTravelEntities")
- {
- this.ContextOptions.LazyLoadingEnabled = true;
- OnContextCreated();
- }
-
- /// <summary>
- /// Initialize a new TailspinTravelEntities object.
- /// </summary>
- public TailspinTravelEntities(string connectionString) : base(connectionString, "TailspinTravelEntities")
- {
- this.ContextOptions.LazyLoadingEnabled = true;
- OnContextCreated();
- }
-
- /// <summary>
- /// Initialize a new TailspinTravelEntities object.
- /// </summary>
- public TailspinTravelEntities(EntityConnection connection) : base(connection, "TailspinTravelEntities")
- {
- this.ContextOptions.LazyLoadingEnabled = true;
- OnContextCreated();
- }
-
- #endregion
-
- #region Partial Methods
-
- partial void OnContextCreated();
-
- #endregion
-
- #region ObjectSet Properties
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<Airport> Airports
- {
- get
- {
- if ((_Airports == null))
- {
- _Airports = base.CreateObjectSet<Airport>("Airports");
- }
- return _Airports;
- }
- }
- private ObjectSet<Airport> _Airports;
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<CarRentalPlace> CarRentalPlaces
- {
- get
- {
- if ((_CarRentalPlaces == null))
- {
- _CarRentalPlaces = base.CreateObjectSet<CarRentalPlace>("CarRentalPlaces");
- }
- return _CarRentalPlaces;
- }
- }
- private ObjectSet<CarRentalPlace> _CarRentalPlaces;
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<CarRental> CarRentals
- {
- get
- {
- if ((_CarRentals == null))
- {
- _CarRentals = base.CreateObjectSet<CarRental>("CarRentals");
- }
- return _CarRentals;
- }
- }
- private ObjectSet<CarRental> _CarRentals;
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<FlightBooking> FlightBookings
- {
- get
- {
- if ((_FlightBookings == null))
- {
- _FlightBookings = base.CreateObjectSet<FlightBooking>("FlightBookings");
- }
- return _FlightBookings;
- }
- }
- private ObjectSet<FlightBooking> _FlightBookings;
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<Flight> Flights
- {
- get
- {
- if ((_Flights == null))
- {
- _Flights = base.CreateObjectSet<Flight>("Flights");
- }
- return _Flights;
- }
- }
- private ObjectSet<Flight> _Flights;
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<HotelOffering> HotelOfferings
- {
- get
- {
- if ((_HotelOfferings == null))
- {
- _HotelOfferings = base.CreateObjectSet<HotelOffering>("HotelOfferings");
- }
- return _HotelOfferings;
- }
- }
- private ObjectSet<HotelOffering> _HotelOfferings;
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<HotelReservation> HotelReservations
- {
- get
- {
- if ((_HotelReservations == null))
- {
- _HotelReservations = base.CreateObjectSet<HotelReservation>("HotelReservations");
- }
- return _HotelReservations;
- }
- }
- private ObjectSet<HotelReservation> _HotelReservations;
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<HotelRoomType> HotelRoomTypes
- {
- get
- {
- if ((_HotelRoomTypes == null))
- {
- _HotelRoomTypes = base.CreateObjectSet<HotelRoomType>("HotelRoomTypes");
- }
- return _HotelRoomTypes;
- }
- }
- private ObjectSet<HotelRoomType> _HotelRoomTypes;
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<Hotel> Hotels
- {
- get
- {
- if ((_Hotels == null))
- {
- _Hotels = base.CreateObjectSet<Hotel>("Hotels");
- }
- return _Hotels;
- }
- }
- private ObjectSet<Hotel> _Hotels;
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<UserItinerary> UserItineraries
- {
- get
- {
- if ((_UserItineraries == null))
- {
- _UserItineraries = base.CreateObjectSet<UserItinerary>("UserItineraries");
- }
- return _UserItineraries;
- }
- }
- private ObjectSet<UserItinerary> _UserItineraries;
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<VehicleAdditional> VehicleAdditionals
- {
- get
- {
- if ((_VehicleAdditionals == null))
- {
- _VehicleAdditionals = base.CreateObjectSet<VehicleAdditional>("VehicleAdditionals");
- }
- return _VehicleAdditionals;
- }
- }
- private ObjectSet<VehicleAdditional> _VehicleAdditionals;
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- public ObjectSet<VehicleType> VehicleTypes
- {
- get
- {
- if ((_VehicleTypes == null))
- {
- _VehicleTypes = base.CreateObjectSet<VehicleType>("VehicleTypes");
- }
- return _VehicleTypes;
- }
- }
- private ObjectSet<VehicleType> _VehicleTypes;
-
- #endregion
- #region AddTo Methods
-
- /// <summary>
- /// Deprecated Method for adding a new object to the Airports EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToAirports(Airport airport)
- {
- base.AddObject("Airports", airport);
- }
-
- /// <summary>
- /// Deprecated Method for adding a new object to the CarRentalPlaces EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToCarRentalPlaces(CarRentalPlace carRentalPlace)
- {
- base.AddObject("CarRentalPlaces", carRentalPlace);
- }
-
- /// <summary>
- /// Deprecated Method for adding a new object to the CarRentals EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToCarRentals(CarRental carRental)
- {
- base.AddObject("CarRentals", carRental);
- }
-
- /// <summary>
- /// Deprecated Method for adding a new object to the FlightBookings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToFlightBookings(FlightBooking flightBooking)
- {
- base.AddObject("FlightBookings", flightBooking);
- }
-
- /// <summary>
- /// Deprecated Method for adding a new object to the Flights EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToFlights(Flight flight)
- {
- base.AddObject("Flights", flight);
- }
-
- /// <summary>
- /// Deprecated Method for adding a new object to the HotelOfferings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToHotelOfferings(HotelOffering hotelOffering)
- {
- base.AddObject("HotelOfferings", hotelOffering);
- }
-
- /// <summary>
- /// Deprecated Method for adding a new object to the HotelReservations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToHotelReservations(HotelReservation hotelReservation)
- {
- base.AddObject("HotelReservations", hotelReservation);
- }
-
- /// <summary>
- /// Deprecated Method for adding a new object to the HotelRoomTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToHotelRoomTypes(HotelRoomType hotelRoomType)
- {
- base.AddObject("HotelRoomTypes", hotelRoomType);
- }
-
- /// <summary>
- /// Deprecated Method for adding a new object to the Hotels EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToHotels(Hotel hotel)
- {
- base.AddObject("Hotels", hotel);
- }
-
- /// <summary>
- /// Deprecated Method for adding a new object to the UserItineraries EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToUserItineraries(UserItinerary userItinerary)
- {
- base.AddObject("UserItineraries", userItinerary);
- }
-
- /// <summary>
- /// Deprecated Method for adding a new object to the VehicleAdditionals EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToVehicleAdditionals(VehicleAdditional vehicleAdditional)
- {
- base.AddObject("VehicleAdditionals", vehicleAdditional);
- }
-
- /// <summary>
- /// Deprecated Method for adding a new object to the VehicleTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
- /// </summary>
- public void AddToVehicleTypes(VehicleType vehicleType)
- {
- base.AddObject("VehicleTypes", vehicleType);
- }
-
- #endregion
- }
-
-
- #endregion
-
- #region Entities
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmEntityTypeAttribute(NamespaceName="TailspinTravelModel", Name="Airport")]
- [Serializable()]
- [DataContractAttribute(IsReference=true)]
- public partial class Airport : EntityObject
- {
- #region Factory Method
-
- /// <summary>
- /// Create a new Airport object.
- /// </summary>
- /// <param name="airportCode">Initial value of the AirportCode property.</param>
- /// <param name="displayName">Initial value of the DisplayName property.</param>
- public static Airport CreateAirport(global::System.String airportCode, global::System.String displayName)
- {
- Airport airport = new Airport();
- airport.AirportCode = airportCode;
- airport.DisplayName = displayName;
- return airport;
- }
-
- #endregion
- #region Primitive Properties
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.String AirportCode
- {
- get
- {
- return _AirportCode;
- }
- set
- {
- if (_AirportCode != value)
- {
- OnAirportCodeChanging(value);
- ReportPropertyChanging("AirportCode");
- _AirportCode = StructuralObject.SetValidValue(value, false);
- ReportPropertyChanged("AirportCode");
- OnAirportCodeChanged();
- }
- }
- }
- private global::System.String _AirportCode;
- partial void OnAirportCodeChanging(global::System.String value);
- partial void OnAirportCodeChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.String DisplayName
- {
- get
- {
- return _DisplayName;
- }
- set
- {
- OnDisplayNameChanging(value);
- ReportPropertyChanging("DisplayName");
- _DisplayName = StructuralObject.SetValidValue(value, false);
- ReportPropertyChanged("DisplayName");
- OnDisplayNameChanged();
- }
- }
- private global::System.String _DisplayName;
- partial void OnDisplayNameChanging(global::System.String value);
- partial void OnDisplayNameChanged();
-
- #endregion
-
- #region Navigation Properties
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [XmlIgnoreAttribute()]
- [SoapIgnoreAttribute()]
- [DataMemberAttribute()]
- [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__Flights__ArrivalAirportCode__3a5df8ba", "Flights")]
- public EntityCollection<Flight> Flights
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Flight>("TailspinTravelModel.FK__Flights__ArrivalAirportCode__3a5df8ba", "Flights");
- }
- set
- {
- if ((value != null))
- {
- ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Flight>("TailspinTravelModel.FK__Flights__ArrivalAirportCode__3a5df8ba", "Flights", value);
- }
- }
- }
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [XmlIgnoreAttribute()]
- [SoapIgnoreAttribute()]
- [DataMemberAttribute()]
- [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__Flights__DepartureAirportCode__6915c204", "Flights")]
- public EntityCollection<Flight> Flights1
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Flight>("TailspinTravelModel.FK__Flights__DepartureAirportCode__6915c204", "Flights");
- }
- set
- {
- if ((value != null))
- {
- ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Flight>("TailspinTravelModel.FK__Flights__DepartureAirportCode__6915c204", "Flights", value);
- }
- }
- }
-
- #endregion
- }
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmEntityTypeAttribute(NamespaceName="TailspinTravelModel", Name="CarRental")]
- [Serializable()]
- [DataContractAttribute(IsReference=true)]
- public partial class CarRental : EntityObject
- {
- #region Factory Method
-
- /// <summary>
- /// Create a new CarRental object.
- /// </summary>
- /// <param name="id">Initial value of the Id property.</param>
- /// <param name="rentalStart">Initial value of the RentalStart property.</param>
- /// <param name="rentalEnd">Initial value of the RentalEnd property.</param>
- /// <param name="pickupPlaceId">Initial value of the PickupPlaceId property.</param>
- /// <param name="returnPlaceId">Initial value of the ReturnPlaceId property.</param>
- /// <param name="vehicleTypeId">Initial value of the VehicleTypeId property.</param>
- 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)
- {
- CarRental carRental = new CarRental();
- carRental.Id = id;
- carRental.RentalStart = rentalStart;
- carRental.RentalEnd = rentalEnd;
- carRental.PickupPlaceId = pickupPlaceId;
- carRental.ReturnPlaceId = returnPlaceId;
- carRental.VehicleTypeId = vehicleTypeId;
- return carRental;
- }
-
- #endregion
- #region Primitive Properties
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.Guid Id
- {
- get
- {
- return _Id;
- }
- set
- {
- if (_Id != value)
- {
- OnIdChanging(value);
- ReportPropertyChanging("Id");
- _Id = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("Id");
- OnIdChanged();
- }
- }
- }
- private global::System.Guid _Id;
- partial void OnIdChanging(global::System.Guid value);
- partial void OnIdChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.DateTime RentalStart
- {
- get
- {
- return _RentalStart;
- }
- set
- {
- OnRentalStartChanging(value);
- ReportPropertyChanging("RentalStart");
- _RentalStart = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("RentalStart");
- OnRentalStartChanged();
- }
- }
- private global::System.DateTime _RentalStart;
- partial void OnRentalStartChanging(global::System.DateTime value);
- partial void OnRentalStartChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.DateTime RentalEnd
- {
- get
- {
- return _RentalEnd;
- }
- set
- {
- OnRentalEndChanging(value);
- ReportPropertyChanging("RentalEnd");
- _RentalEnd = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("RentalEnd");
- OnRentalEndChanged();
- }
- }
- private global::System.DateTime _RentalEnd;
- partial void OnRentalEndChanging(global::System.DateTime value);
- partial void OnRentalEndChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.Guid PickupPlaceId
- {
- get
- {
- return _PickupPlaceId;
- }
- set
- {
- OnPickupPlaceIdChanging(value);
- ReportPropertyChanging("PickupPlaceId");
- _PickupPlaceId = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("PickupPlaceId");
- OnPickupPlaceIdChanged();
- }
- }
- private global::System.Guid _PickupPlaceId;
- partial void OnPickupPlaceIdChanging(global::System.Guid value);
- partial void OnPickupPlaceIdChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.Guid ReturnPlaceId
- {
- get
- {
- return _ReturnPlaceId;
- }
- set
- {
- OnReturnPlaceIdChanging(value);
- ReportPropertyChanging("ReturnPlaceId");
- _ReturnPlaceId = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("ReturnPlaceId");
- OnReturnPlaceIdChanged();
- }
- }
- private global::System.Guid _ReturnPlaceId;
- partial void OnReturnPlaceIdChanging(global::System.Guid value);
- partial void OnReturnPlaceIdChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.Guid VehicleTypeId
- {
- get
- {
- return _VehicleTypeId;
- }
- set
- {
- OnVehicleTypeIdChanging(value);
- ReportPropertyChanging("VehicleTypeId");
- _VehicleTypeId = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("VehicleTypeId");
- OnVehicleTypeIdChanged();
- }
- }
- private global::System.Guid _VehicleTypeId;
- partial void OnVehicleTypeIdChanging(global::System.Guid value);
- partial void OnVehicleTypeIdChanged();
-
- #endregion
-
- #region Navigation Properties
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [XmlIgnoreAttribute()]
- [SoapIgnoreAttribute()]
- [DataMemberAttribute()]
- [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals__PickupPlaceId__67933c27", "CarRentalPlaces")]
- public CarRentalPlace CarRentalPlace
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentalPlaces").Value;
- }
- set
- {
- ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentalPlaces").Value = value;
- }
- }
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [BrowsableAttribute(false)]
- [DataMemberAttribute()]
- public EntityReference<CarRentalPlace> CarRentalPlaceReference
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentalPlaces");
- }
- set
- {
- if ((value != null))
- {
- ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentalPlaces", value);
- }
- }
- }
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [XmlIgnoreAttribute()]
- [SoapIgnoreAttribute()]
- [DataMemberAttribute()]
- [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentalPlaces")]
- public CarRentalPlace CarRentalPlace1
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentalPlaces").Value;
- }
- set
- {
- ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentalPlaces").Value = value;
- }
- }
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [BrowsableAttribute(false)]
- [DataMemberAttribute()]
- public EntityReference<CarRentalPlace> CarRentalPlace1Reference
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentalPlaces");
- }
- set
- {
- if ((value != null))
- {
- ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CarRentalPlace>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentalPlaces", value);
- }
- }
- }
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [XmlIgnoreAttribute()]
- [SoapIgnoreAttribute()]
- [DataMemberAttribute()]
- [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals________Id__25f36f99", "UserItineraries")]
- public UserItinerary UserItinerary
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<UserItinerary>("TailspinTravelModel.FK__CarRentals________Id__25f36f99", "UserItineraries").Value;
- }
- set
- {
- ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<UserItinerary>("TailspinTravelModel.FK__CarRentals________Id__25f36f99", "UserItineraries").Value = value;
- }
- }
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [BrowsableAttribute(false)]
- [DataMemberAttribute()]
- public EntityReference<UserItinerary> UserItineraryReference
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<UserItinerary>("TailspinTravelModel.FK__CarRentals________Id__25f36f99", "UserItineraries");
- }
- set
- {
- if ((value != null))
- {
- ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<UserItinerary>("TailspinTravelModel.FK__CarRentals________Id__25f36f99", "UserItineraries", value);
- }
- }
- }
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [XmlIgnoreAttribute()]
- [SoapIgnoreAttribute()]
- [DataMemberAttribute()]
- [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals__VehicleTypeId__21f99a8c", "VehicleTypes")]
- public VehicleType VehicleType
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VehicleType>("TailspinTravelModel.FK__CarRentals__VehicleTypeId__21f99a8c", "VehicleTypes").Value;
- }
- set
- {
- ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VehicleType>("TailspinTravelModel.FK__CarRentals__VehicleTypeId__21f99a8c", "VehicleTypes").Value = value;
- }
- }
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [BrowsableAttribute(false)]
- [DataMemberAttribute()]
- public EntityReference<VehicleType> VehicleTypeReference
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VehicleType>("TailspinTravelModel.FK__CarRentals__VehicleTypeId__21f99a8c", "VehicleTypes");
- }
- set
- {
- if ((value != null))
- {
- ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<VehicleType>("TailspinTravelModel.FK__CarRentals__VehicleTypeId__21f99a8c", "VehicleTypes", value);
- }
- }
- }
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [XmlIgnoreAttribute()]
- [SoapIgnoreAttribute()]
- [DataMemberAttribute()]
- [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "CarRentalAdditionals", "VehicleAdditionals")]
- public EntityCollection<VehicleAdditional> VehicleAdditionals
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<VehicleAdditional>("TailspinTravelModel.CarRentalAdditionals", "VehicleAdditionals");
- }
- set
- {
- if ((value != null))
- {
- ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<VehicleAdditional>("TailspinTravelModel.CarRentalAdditionals", "VehicleAdditionals", value);
- }
- }
- }
-
- #endregion
- }
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmEntityTypeAttribute(NamespaceName="TailspinTravelModel", Name="CarRentalPlace")]
- [Serializable()]
- [DataContractAttribute(IsReference=true)]
- public partial class CarRentalPlace : EntityObject
- {
- #region Factory Method
-
- /// <summary>
- /// Create a new CarRentalPlace object.
- /// </summary>
- /// <param name="id">Initial value of the Id property.</param>
- /// <param name="name">Initial value of the Name property.</param>
- public static CarRentalPlace CreateCarRentalPlace(global::System.Guid id, global::System.String name)
- {
- CarRentalPlace carRentalPlace = new CarRentalPlace();
- carRentalPlace.Id = id;
- carRentalPlace.Name = name;
- return carRentalPlace;
- }
-
- #endregion
- #region Primitive Properties
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.Guid Id
- {
- get
- {
- return _Id;
- }
- set
- {
- if (_Id != value)
- {
- OnIdChanging(value);
- ReportPropertyChanging("Id");
- _Id = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("Id");
- OnIdChanged();
- }
- }
- }
- private global::System.Guid _Id;
- partial void OnIdChanging(global::System.Guid value);
- partial void OnIdChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.String Name
- {
- get
- {
- return _Name;
- }
- set
- {
- OnNameChanging(value);
- ReportPropertyChanging("Name");
- _Name = StructuralObject.SetValidValue(value, false);
- ReportPropertyChanged("Name");
- OnNameChanged();
- }
- }
- private global::System.String _Name;
- partial void OnNameChanging(global::System.String value);
- partial void OnNameChanged();
-
- #endregion
-
- #region Navigation Properties
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [XmlIgnoreAttribute()]
- [SoapIgnoreAttribute()]
- [DataMemberAttribute()]
- [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals__PickupPlaceId__67933c27", "CarRentals")]
- public EntityCollection<CarRental> CarRentals
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CarRental>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentals");
- }
- set
- {
- if ((value != null))
- {
- ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CarRental>("TailspinTravelModel.FK__CarRentals__PickupPlaceId__67933c27", "CarRentals", value);
- }
- }
- }
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [XmlIgnoreAttribute()]
- [SoapIgnoreAttribute()]
- [DataMemberAttribute()]
- [EdmRelationshipNavigationPropertyAttribute("TailspinTravelModel", "FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentals")]
- public EntityCollection<CarRental> CarRentals1
- {
- get
- {
- return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CarRental>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentals");
- }
- set
- {
- if ((value != null))
- {
- ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CarRental>("TailspinTravelModel.FK__CarRentals__ReturnPlaceId__3a3065aa", "CarRentals", value);
- }
- }
- }
-
- #endregion
- }
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmEntityTypeAttribute(NamespaceName="TailspinTravelModel", Name="Flight")]
- [Serializable()]
- [DataContractAttribute(IsReference=true)]
- public partial class Flight : EntityObject
- {
- #region Factory Method
-
- /// <summary>
- /// Create a new Flight object.
- /// </summary>
- /// <param name="id">Initial value of the Id property.</param>
- /// <param name="flightBookingId">Initial value of the FlightBookingId property.</param>
- /// <param name="order">Initial value of the Order property.</param>
- /// <param name="airplaneType">Initial value of the AirplaneType property.</param>
- /// <param name="airline">Initial value of the Airline property.</param>
- /// <param name="class">Initial value of the Class property.</param>
- /// <param name="miles">Initial value of the Miles property.</param>
- /// <param name="departureTime">Initial value of the DepartureTime property.</param>
- /// <param name="arrivalTime">Initial value of the ArrivalTime property.</param>
- /// <param name="departureAirportCode">Initial value of the DepartureAirportCode property.</param>
- /// <param name="arrivalAirportCode">Initial value of the ArrivalAirportCode property.</param>
- 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)
- {
- Flight flight = new Flight();
- flight.Id = id;
- flight.FlightBookingId = flightBookingId;
- flight.Order = order;
- flight.AirplaneType = airplaneType;
- flight.Airline = airline;
- flight.Class = @class;
- flight.Miles = miles;
- flight.DepartureTime = departureTime;
- flight.ArrivalTime = arrivalTime;
- flight.DepartureAirportCode = departureAirportCode;
- flight.ArrivalAirportCode = arrivalAirportCode;
- return flight;
- }
-
- #endregion
- #region Primitive Properties
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.Guid Id
- {
- get
- {
- return _Id;
- }
- set
- {
- if (_Id != value)
- {
- OnIdChanging(value);
- ReportPropertyChanging("Id");
- _Id = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("Id");
- OnIdChanged();
- }
- }
- }
- private global::System.Guid _Id;
- partial void OnIdChanging(global::System.Guid value);
- partial void OnIdChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.Guid FlightBookingId
- {
- get
- {
- return _FlightBookingId;
- }
- set
- {
- OnFlightBookingIdChanging(value);
- ReportPropertyChanging("FlightBookingId");
- _FlightBookingId = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("FlightBookingId");
- OnFlightBookingIdChanged();
- }
- }
- private global::System.Guid _FlightBookingId;
- partial void OnFlightBookingIdChanging(global::System.Guid value);
- partial void OnFlightBookingIdChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.Int32 Order
- {
- get
- {
- return _Order;
- }
- set
- {
- OnOrderChanging(value);
- ReportPropertyChanging("Order");
- _Order = StructuralObject.SetValidValue(value);
- ReportPropertyChanged("Order");
- OnOrderChanged();
- }
- }
- private global::System.Int32 _Order;
- partial void OnOrderChanging(global::System.Int32 value);
- partial void OnOrderChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.String AirplaneType
- {
- get
- {
- return _AirplaneType;
- }
- set
- {
- OnAirplaneTypeChanging(value);
- ReportPropertyChanging("AirplaneType");
- _AirplaneType = StructuralObject.SetValidValue(value, false);
- ReportPropertyChanged("AirplaneType");
- OnAirplaneTypeChanged();
- }
- }
- private global::System.String _AirplaneType;
- partial void OnAirplaneTypeChanging(global::System.String value);
- partial void OnAirplaneTypeChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.String Airline
- {
- get
- {
- return _Airline;
- }
- set
- {
- OnAirlineChanging(value);
- ReportPropertyChanging("Airline");
- _Airline = StructuralObject.SetValidValue(value, false);
- ReportPropertyChanged("Airline");
- OnAirlineChanged();
- }
- }
- private global::System.String _Airline;
- partial void OnAirlineChanging(global::System.String value);
- partial void OnAirlineChanged();
-
- /// <summary>
- /// No Metadata Documentation available.
- /// </summary>
- [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
- [DataMemberAttribute()]
- public global::System.String Class
- {
- get
- {
- return _Class;
- }
- …
Large files files are truncated, but you can click here to view the full file