コード例 #1
0
 /// <summary>
 /// Create a new ProductMaterial object.
 /// </summary>
 /// <param name="materialID">Initial value of the MaterialID property.</param>
 /// <param name="materialNameID">Initial value of the MaterialNameID property.</param>
 /// <param name="productID">Initial value of the ProductID property.</param>
 public static ProductMaterial CreateProductMaterial(global::System.Int64 materialID, global::System.Int32 materialNameID, global::System.Int64 productID)
 {
     ProductMaterial productMaterial = new ProductMaterial();
     productMaterial.MaterialID = materialID;
     productMaterial.MaterialNameID = materialNameID;
     productMaterial.ProductID = productID;
     return productMaterial;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ProductMaterials EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProductMaterials(ProductMaterial productMaterial)
 {
     base.AddObject("ProductMaterials", productMaterial);
 }