Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ShopDB EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToShopDB(ShopDB shopDB)
 {
     base.AddObject("ShopDB", shopDB);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new ShopDB object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="productName">Initial value of the productName property.</param>
 /// <param name="itemsInStock">Initial value of the itemsInStock property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 public static ShopDB CreateShopDB(global::System.Decimal id, global::System.String productName, global::System.Double itemsInStock, global::System.Decimal price)
 {
     ShopDB shopDB = new ShopDB();
     shopDB.ID = id;
     shopDB.productName = productName;
     shopDB.itemsInStock = itemsInStock;
     shopDB.Price = price;
     return shopDB;
 }