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