/// <summary> /// Create a new ProductExtraCost object. /// </summary> /// <param name="extraCostID">Initial value of the ExtraCostID property.</param> /// <param name="cost">Initial value of the Cost property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="extraCostTypeID">Initial value of the ExtraCostTypeID property.</param> public static ProductExtraCost CreateProductExtraCost(global::System.Int64 extraCostID, global::System.Decimal cost, global::System.Int64 productID, global::System.Int16 extraCostTypeID) { ProductExtraCost productExtraCost = new ProductExtraCost(); productExtraCost.ExtraCostID = extraCostID; productExtraCost.Cost = cost; productExtraCost.ProductID = productID; productExtraCost.ExtraCostTypeID = extraCostTypeID; return productExtraCost; }
/// <summary> /// Deprecated Method for adding a new object to the ProductExtraCosts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductExtraCosts(ProductExtraCost productExtraCost) { base.AddObject("ProductExtraCosts", productExtraCost); }