예제 #1
0
 /// <summary>
 /// Create a new product object.
 /// </summary>
 /// <param name="prodID">Initial value of the prodID property.</param>
 /// <param name="prodName">Initial value of the prodName property.</param>
 /// <param name="prodPrice">Initial value of the prodPrice property.</param>
 /// <param name="prodCategoryName">Initial value of the prodCategoryName property.</param>
 public static product Createproduct(global::System.Int32 prodID, global::System.String prodName, global::System.Decimal prodPrice, global::System.String prodCategoryName)
 {
     product product = new product();
     product.prodID = prodID;
     product.prodName = prodName;
     product.prodPrice = prodPrice;
     product.prodCategoryName = prodCategoryName;
     return product;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the products EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToproducts(product product)
 {
     base.AddObject("products", product);
 }