コード例 #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="public">Initial value of the Public property.</param>
 public static Location CreateLocation(global::System.Int32 id, global::System.String name, global::System.Boolean @public)
 {
     Location location = new Location();
     location.ID = id;
     location.Name = name;
     location.Public = @public;
     return location;
 }