Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Sales EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSales(Sale sale)
 {
     base.AddObject("Sales", sale);
 }
Пример #2
0
 /// <summary>
 /// Create a new Sale object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="customerID">Initial value of the CustomerID property.</param>
 /// <param name="salesDate">Initial value of the SalesDate property.</param>
 /// <param name="invoiceID">Initial value of the InvoiceID property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 public static Sale CreateSale(global::System.Int32 id, global::System.Int32 customerID, global::System.DateTime salesDate, global::System.Int32 invoiceID, global::System.Int32 userID)
 {
     Sale sale = new Sale();
     sale.ID = id;
     sale.CustomerID = customerID;
     sale.SalesDate = salesDate;
     sale.InvoiceID = invoiceID;
     sale.UserID = userID;
     return sale;
 }