Пример #1
0
 /// <summary>
 /// Create a new ProductMaster object.
 /// </summary>
 /// <param name="productID">Initial value of the ProductID property.</param>
 /// <param name="productName">Initial value of the ProductName property.</param>
 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
 public static ProductMaster CreateProductMaster(global::System.Int32 productID, global::System.String productName, global::System.Int32 unitPrice)
 {
     ProductMaster productMaster = new ProductMaster();
     productMaster.ProductID = productID;
     productMaster.ProductName = productName;
     productMaster.UnitPrice = unitPrice;
     return productMaster;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ProductMasters EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProductMasters(ProductMaster productMaster)
 {
     base.AddObject("ProductMasters", productMaster);
 }