Esempio n. 1
0
 /// <summary>
 /// Create a new Customer object.
 /// </summary>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="gender">Initial value of the Gender property.</param>
 /// <param name="houseNumber">Initial value of the HouseNumber property.</param>
 /// <param name="dOB">Initial value of the DOB property.</param>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="locationId">Initial value of the LocationId property.</param>
 /// <param name="categoryId">Initial value of the CategoryId property.</param>
 public static Customer CreateCustomer(global::System.String name, global::System.String gender, global::System.Int32 houseNumber, global::System.DateTime dOB, global::System.Int64 id, global::System.Int32 locationId, global::System.Int32 categoryId)
 {
     Customer customer = new Customer();
     customer.Name = name;
     customer.Gender = gender;
     customer.HouseNumber = houseNumber;
     customer.DOB = dOB;
     customer.Id = id;
     customer.LocationId = locationId;
     customer.CategoryId = categoryId;
     return customer;
 }
Esempio 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);
 }