コード例 #1
0
 /// <summary>
 /// Create a new Product object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="subCategoryID">Initial value of the SubCategoryID property.</param>
 /// <param name="no">Initial value of the No property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="nameEN">Initial value of the NameEN property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="weight">Initial value of the Weight property.</param>
 /// <param name="special">Initial value of the Special property.</param>
 /// <param name="quantityType">Initial value of the QuantityType property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 public static Product CreateProduct(global::System.Int32 id, global::System.Int32 subCategoryID, global::System.Int32 no, global::System.String name, global::System.String nameEN, global::System.Decimal price, global::System.Decimal weight, global::System.Boolean special, global::System.Byte quantityType, global::System.Int32 quantity)
 {
     Product product = new Product();
     product.ID = id;
     product.SubCategoryID = subCategoryID;
     product.No = no;
     product.Name = name;
     product.NameEN = nameEN;
     product.Price = price;
     product.Weight = weight;
     product.Special = special;
     product.QuantityType = quantityType;
     product.Quantity = quantity;
     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);
 }