コード例 #1
0
 /// <summary>
 /// Create a new Location object.
 /// </summary>
 /// <param name="locationId">Initial value of the LocationId property.</param>
 /// <param name="locationName">Initial value of the LocationName property.</param>
 public static Location CreateLocation(global::System.Int32 locationId, global::System.String locationName)
 {
     Location location = new Location();
     location.LocationId = locationId;
     location.LocationName = locationName;
     return location;
 }
コード例 #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);
 }