/// <summary> /// Create a new Customer object. /// </summary> /// <param name="customerID">Initial value of the CustomerID property.</param> /// <param name="nameStyle">Initial value of the NameStyle property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="passwordHash">Initial value of the PasswordHash property.</param> /// <param name="passwordSalt">Initial value of the PasswordSalt property.</param> /// <param name="rowguid">Initial value of the rowguid property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static Customer CreateCustomer(global::System.Int32 customerID, global::System.Boolean nameStyle, global::System.String firstName, global::System.String lastName, global::System.String passwordHash, global::System.String passwordSalt, global::System.Guid rowguid, global::System.DateTime modifiedDate) { Customer customer = new Customer(); customer.CustomerID = customerID; customer.NameStyle = nameStyle; customer.FirstName = firstName; customer.LastName = lastName; customer.PasswordHash = passwordHash; customer.PasswordSalt = passwordSalt; customer.rowguid = rowguid; customer.ModifiedDate = modifiedDate; return customer; }
private bool FilterCustomer(Customer entity) { return (entity.CustomerID == this.CustomerID); }
/// <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); }