/// <summary> /// Create a new ProductSaleHistory object. /// </summary> /// <param name="autoInc">Initial value of the AutoInc property.</param> /// <param name="saleDate">Initial value of the SaleDate property.</param> /// <param name="productName">Initial value of the ProductName property.</param> /// <param name="rate">Initial value of the Rate property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="customerID">Initial value of the CustomerID property.</param> public static ProductSaleHistory CreateProductSaleHistory(global::System.Int64 autoInc, global::System.DateTime saleDate, global::System.String productName, global::System.Decimal rate, global::System.Decimal quantity, global::System.Int64 customerID) { ProductSaleHistory productSaleHistory = new ProductSaleHistory(); productSaleHistory.AutoInc = autoInc; productSaleHistory.SaleDate = saleDate; productSaleHistory.ProductName = productName; productSaleHistory.Rate = rate; productSaleHistory.Quantity = quantity; productSaleHistory.CustomerID = customerID; return productSaleHistory; }
/// <summary> /// Deprecated Method for adding a new object to the ProductSaleHistories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductSaleHistories(ProductSaleHistory productSaleHistory) { base.AddObject("ProductSaleHistories", productSaleHistory); }