/// <summary> /// Create a new Customer object. /// </summary> /// <param name="code">Initial value of the Code property.</param> /// <param name="terminalCode">Initial value of the TerminalCode property.</param> /// <param name="discountPercentage">Initial value of the DiscountPercentage property.</param> public static Customer CreateCustomer(global::System.Int32 code, global::System.Int32 terminalCode, global::System.Double discountPercentage) { Customer customer = new Customer(); customer.Code = code; customer.TerminalCode = terminalCode; customer.DiscountPercentage = discountPercentage; return customer; }
/// <summary> /// Deprecated Method for adding a new object to the Customers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCustomers(Customer customer) { base.AddObject("Customers", customer); }