/// <summary> /// Create a new Customer object. /// </summary> /// <param name="customerID">Initial value of the CustomerID property.</param> /// <param name="dateOfBirth">Initial value of the DateOfBirth property.</param> /// <param name="gender">Initial value of the Gender property.</param> /// <param name="phoneNo">Initial value of the PhoneNo property.</param> /// <param name="emailAddress">Initial value of the EmailAddress property.</param> /// <param name="password">Initial value of the Password property.</param> /// <param name="cellNo">Initial value of the CellNo property.</param> /// <param name="valid">Initial value of the Valid property.</param> public static Customer CreateCustomer(global::System.Int32 customerID, global::System.DateTime dateOfBirth, global::System.String gender, global::System.String phoneNo, global::System.String emailAddress, global::System.String password, global::System.String cellNo, global::System.Boolean valid) { Customer customer = new Customer(); customer.CustomerID = customerID; customer.DateOfBirth = dateOfBirth; customer.Gender = gender; customer.PhoneNo = phoneNo; customer.EmailAddress = emailAddress; customer.Password = password; customer.CellNo = cellNo; customer.Valid = valid; return customer; }
/// <summary> /// Deprecated Method for adding a new object to the Customers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCustomers(Customer customer) { base.AddObject("Customers", customer); }