Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Cities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCities(City city)
 {
     base.AddObject("Cities", city);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new City object.
 /// </summary>
 /// <param name="cityID">Initial value of the CityID property.</param>
 /// <param name="city1">Initial value of the City1 property.</param>
 /// <param name="country">Initial value of the Country property.</param>
 public static City CreateCity(global::System.Int32 cityID, global::System.String city1, global::System.String country)
 {
     City city = new City();
     city.CityID = cityID;
     city.City1 = city1;
     city.Country = country;
     return city;
 }