/// <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);
 }
 /// <summary>
 /// Create a new Flight object.
 /// </summary>
 /// <param name="flightId">Initial value of the FlightId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="capacity">Initial value of the Capacity property.</param>
 /// <param name="isLocked">Initial value of the IsLocked property.</param>
 /// <param name="planeId">Initial value of the PlaneId property.</param>
 public static Flight CreateFlight(global::System.Int32 flightId, global::System.String name, global::System.Int32 capacity, global::System.Boolean isLocked, global::System.Int32 planeId)
 {
     Flight flight = new Flight();
     flight.FlightId = flightId;
     flight.Name = name;
     flight.Capacity = capacity;
     flight.IsLocked = isLocked;
     flight.PlaneId = planeId;
     return flight;
 }