예제 #1
0
 /// <summary>
 /// Create a new Customer object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="first">Initial value of the First property.</param>
 /// <param name="last">Initial value of the Last property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="createdOn">Initial value of the CreatedOn property.</param>
 /// <param name="updatedOn">Initial value of the UpdatedOn property.</param>
 public static Customer CreateCustomer(global::System.Int32 id, global::System.String first, global::System.String last, global::System.String email, global::System.DateTime createdOn, global::System.DateTime updatedOn)
 {
     Customer customer = new Customer();
     customer.ID = id;
     customer.First = first;
     customer.Last = last;
     customer.Email = email;
     customer.CreatedOn = createdOn;
     customer.UpdatedOn = updatedOn;
     return customer;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Customers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomers(Customer customer)
 {
     base.AddObject("Customers", customer);
 }