상속: System.Data.Objects.DataClasses.EntityObject
예제 #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="locationID">Initial value of the LocationID property.</param>
 /// <param name="locationCode">Initial value of the LocationCode property.</param>
 /// <param name="locationName">Initial value of the LocationName property.</param>
 public static Location CreateLocation(global::System.Int32 locationID, global::System.String locationCode, global::System.String locationName)
 {
     Location location = new Location();
     location.LocationID = locationID;
     location.LocationCode = locationCode;
     location.LocationName = locationName;
     return location;
 }