/// <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); }
/// <summary> /// Create a new Customer object. /// </summary> /// <param name="active">Initial value of the Active property.</param> /// <param name="customerPassword">Initial value of the CustomerPassword property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="emailAddress">Initial value of the EmailAddress property.</param> /// <param name="emailAddressConfirmed">Initial value of the EmailAddressConfirmed property.</param> /// <param name="executionCount">Initial value of the ExecutionCount property.</param> /// <param name="id">Initial value of the ID property.</param> /// <param name="inserted">Initial value of the Inserted property.</param> /// <param name="maxExecutionCount">Initial value of the MaxExecutionCount property.</param> /// <param name="suspended">Initial value of the Suspended property.</param> /// <param name="serviceLevel">Initial value of the ServiceLevel property.</param> public static Customer CreateCustomer(global::System.Boolean active, global::System.String customerPassword, global::System.String name, global::System.String emailAddress, global::System.Boolean emailAddressConfirmed, global::System.Int32 executionCount, global::System.String id, global::System.String inserted, global::System.Int32 maxExecutionCount, global::System.Boolean suspended, global::System.String serviceLevel) { Customer customer = new Customer(); customer.Active = active; customer.CustomerPassword = customerPassword; customer.Name = name; customer.EmailAddress = emailAddress; customer.EmailAddressConfirmed = emailAddressConfirmed; customer.ExecutionCount = executionCount; customer.ID = id; customer.Inserted = inserted; customer.MaxExecutionCount = maxExecutionCount; customer.Suspended = suspended; customer.ServiceLevel = serviceLevel; return customer; }