/// <summary> /// Create a new Customer object. /// </summary> /// <param name="customerID">Initial value of the CustomerID property.</param> /// <param name="contactName">Initial value of the ContactName property.</param> public static Customer CreateCustomer(global::System.String customerID, global::System.String contactName) { Customer customer = new Customer(); customer.CustomerID = customerID; customer.ContactName = contactName; return customer; }
/// <summary> /// Deprecated Method for adding a new object to the CustomerSet EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCustomerSet(Customer customer) { base.AddObject("CustomerSet", customer); }