/// <summary> /// Deprecated Method for adding a new object to the Cities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCities(City city) { base.AddObject("Cities", city); }
/// <summary> /// Create a new City object. /// </summary> /// <param name="city_Name">Initial value of the City_Name property.</param> /// <param name="country_Code">Initial value of the Country_Code property.</param> public static City CreateCity(global::System.String city_Name, global::System.Int32 country_Code) { City city = new City(); city.City_Name = city_Name; city.Country_Code = country_Code; return city; }