예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Customer EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomer(Customer customer)
 {
     base.AddObject("Customer", customer);
 }
예제 #2
0
 /// <summary>
 /// Create a new Customer object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 public static Customer CreateCustomer(global::System.Int64 id, global::System.String firstName, global::System.String lastName)
 {
     Customer customer = new Customer();
     customer.ID = id;
     customer.FirstName = firstName;
     customer.LastName = lastName;
     return customer;
 }