Exemplo n.º 1
0
 /// <summary>
 /// Create a new Customer object.
 /// </summary>
 /// <param name="customerID">Initial value of the CustomerID property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="address1">Initial value of the Address1 property.</param>
 /// <param name="address2">Initial value of the Address2 property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="state">Initial value of the State property.</param>
 /// <param name="zip">Initial value of the Zip property.</param>
 /// <param name="phoneNumber">Initial value of the PhoneNumber property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 public static Customer CreateCustomer(global::System.Int32 customerID, global::System.String firstName, global::System.String lastName, global::System.String address1, global::System.String address2, global::System.String city, global::System.String state, global::System.String zip, global::System.String phoneNumber, global::System.Guid userID)
 {
     Customer customer = new Customer();
     customer.CustomerID = customerID;
     customer.FirstName = firstName;
     customer.LastName = lastName;
     customer.Address1 = address1;
     customer.Address2 = address2;
     customer.City = city;
     customer.State = state;
     customer.Zip = zip;
     customer.PhoneNumber = phoneNumber;
     customer.UserID = userID;
     return customer;
 }
Exemplo n.º 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);
 }