Esempio n. 1
0
 /// <summary>
 /// Create a new Location object.
 /// </summary>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="state">Initial value of the State property.</param>
 /// <param name="country">Initial value of the Country property.</param>
 /// <param name="id">Initial value of the Id property.</param>
 public static Location CreateLocation(global::System.String city, global::System.String state, global::System.String country, global::System.Int32 id)
 {
     Location location = new Location();
     location.City = city;
     location.State = state;
     location.Country = country;
     location.Id = id;
     return location;
 }
Esempio n. 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Locations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLocations(Location location)
 {
     base.AddObject("Locations", location);
 }