/// <summary>
 /// Create a new Flight object.
 /// </summary>
 /// <param name="flightId">Initial value of the FlightId property.</param>
 /// <param name="departure">Initial value of the Departure property.</param>
 /// <param name="destination">Initial value of the Destination property.</param>
 /// <param name="flightDate">Initial value of the FlightDate property.</param>
 /// <param name="takeOff">Initial value of the TakeOff property.</param>
 /// <param name="arrival">Initial value of the Arrival property.</param>
 /// <param name="capacity">Initial value of the Capacity property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="cabinClass">Initial value of the CabinClass property.</param>
 public static Flight CreateFlight(global::System.String flightId, global::System.String departure, global::System.String destination, global::System.DateTime flightDate, global::System.TimeSpan takeOff, global::System.TimeSpan arrival, global::System.Int32 capacity, global::System.Decimal price, global::System.String cabinClass)
 {
     Flight flight = new Flight();
     flight.FlightId = flightId;
     flight.Departure = departure;
     flight.Destination = destination;
     flight.FlightDate = flightDate;
     flight.TakeOff = takeOff;
     flight.Arrival = arrival;
     flight.Capacity = capacity;
     flight.Price = price;
     flight.CabinClass = cabinClass;
     return flight;
 }
 /// <summary>
 /// 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.
 /// </summary>
 public void AddToFlights(Flight flight)
 {
     base.AddObject("Flights", flight);
 }