/// <summary> /// Deprecated Method for adding a new object to the Sales EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSales(Sale sale) { base.AddObject("Sales", sale); }
/// <summary> /// Create a new Sale object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="saleDate">Initial value of the SaleDate property.</param> /// <param name="sale_Company">Initial value of the Sale_Company property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static Sale CreateSale(global::System.Int32 id, global::System.DateTime saleDate, global::System.Int32 sale_Company, global::System.Byte[] rowVersion) { Sale sale = new Sale(); sale.Id = id; sale.SaleDate = saleDate; sale.Sale_Company = sale_Company; sale.RowVersion = rowVersion; return sale; }