Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the City EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCity(City city)
 {
     base.AddObject("City", city);
 }
Пример #2
0
 /// <summary>
 /// Create a new City object.
 /// </summary>
 /// <param name="cityId">Initial value of the CityId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="stateId">Initial value of the StateId property.</param>
 /// <param name="isPopular">Initial value of the IsPopular property.</param>
 public static City CreateCity(global::System.Int32 cityId, global::System.String name, global::System.Int32 stateId, global::System.Boolean isPopular)
 {
     City city = new City();
     city.CityId = cityId;
     city.Name = name;
     city.StateId = stateId;
     city.IsPopular = isPopular;
     return city;
 }