/// <summary> /// Deprecated Method for adding a new object to the Products EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProducts(Product product) { base.AddObject("Products", product); }
/// <summary> /// Create a new Product object. /// </summary> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="busUnit">Initial value of the BusUnit property.</param> /// <param name="cartState">Initial value of the CartState property.</param> /// <param name="allowGeneralDiscount">Initial value of the AllowGeneralDiscount property.</param> /// <param name="outputType">Initial value of the OutputType property.</param> /// <param name="scheduling">Initial value of the Scheduling property.</param> /// <param name="commissionPct">Initial value of the CommissionPct property.</param> /// <param name="allowPrepayDiscount">Initial value of the AllowPrepayDiscount property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="dateCreated">Initial value of the DateCreated property.</param> /// <param name="lastUpdatedBy">Initial value of the LastUpdatedBy property.</param> /// <param name="dateLastUpdated">Initial value of the DateLastUpdated property.</param> /// <param name="availableForCrossSell">Initial value of the AvailableForCrossSell property.</param> /// <param name="treeShrubService">Initial value of the TreeShrubService property.</param> /// <param name="requiresEasyPay">Initial value of the RequiresEasyPay property.</param> /// <param name="itemTaxOverride">Initial value of the ItemTaxOverride property.</param> /// <param name="isPlanFlag">Initial value of the IsPlanFlag property.</param> /// <param name="isOneTime">Initial value of the IsOneTime property.</param> /// <param name="includeOneTimeAmount">Initial value of the IncludeOneTimeAmount property.</param> public static Product CreateProduct(global::System.Int32 productID, global::System.String name, global::System.String busUnit, global::System.String cartState, global::System.Boolean allowGeneralDiscount, global::System.String outputType, global::System.String scheduling, global::System.Decimal commissionPct, global::System.Boolean allowPrepayDiscount, global::System.String createdBy, global::System.DateTime dateCreated, global::System.String lastUpdatedBy, global::System.DateTime dateLastUpdated, global::System.Boolean availableForCrossSell, global::System.Boolean treeShrubService, global::System.Boolean requiresEasyPay, global::System.Boolean itemTaxOverride, global::System.Boolean isPlanFlag, global::System.Boolean isOneTime, global::System.Boolean includeOneTimeAmount) { Product product = new Product(); product.ProductID = productID; product.Name = name; product.BusUnit = busUnit; product.CartState = cartState; product.AllowGeneralDiscount = allowGeneralDiscount; product.OutputType = outputType; product.Scheduling = scheduling; product.CommissionPct = commissionPct; product.AllowPrepayDiscount = allowPrepayDiscount; product.CreatedBy = createdBy; product.DateCreated = dateCreated; product.LastUpdatedBy = lastUpdatedBy; product.DateLastUpdated = dateLastUpdated; product.AvailableForCrossSell = availableForCrossSell; product.TreeShrubService = treeShrubService; product.RequiresEasyPay = requiresEasyPay; product.ItemTaxOverride = itemTaxOverride; product.IsPlanFlag = isPlanFlag; product.IsOneTime = isOneTime; product.IncludeOneTimeAmount = includeOneTimeAmount; return product; }