Пример #1
0
 /// <summary>
 /// Create a new Inventory object.
 /// </summary>
 /// <param name="carID">Initial value of the CarID property.</param>
 public static Inventory CreateInventory(global::System.Int32 carID)
 {
     Inventory inventory = new Inventory();
     inventory.CarID = carID;
     return inventory;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Inventories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInventories(Inventory inventory)
 {
     base.AddObject("Inventories", inventory);
 }