Пример #1
0
 /// <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;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomerSet EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomerSet(Customer customer)
 {
     base.AddObject("CustomerSet", customer);
 }