Пример #1
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);
 }
Пример #2
0
 /// <summary>
 /// Create a new Location object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="address1">Initial value of the Address1 property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="state">Initial value of the State property.</param>
 /// <param name="zip">Initial value of the Zip property.</param>
 public static Location CreateLocation(global::System.Int32 id, global::System.String name, global::System.String address1, global::System.String city, global::System.String state, global::System.String zip)
 {
     Location location = new Location();
     location.Id = id;
     location.Name = name;
     location.Address1 = address1;
     location.City = city;
     location.State = state;
     location.Zip = zip;
     return location;
 }