/// <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> /// Create a new Airport object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="countryId">Initial value of the CountryId property.</param> public static Airport CreateAirport(global::System.Int32 id, global::System.String countryId) { Airport airport = new Airport(); airport.Id = id; airport.CountryId = countryId; return airport; }