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