/// <summary> /// Create a new Customer object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="promotionId">Initial value of the PromotionId property.</param> /// <param name="dealerId">Initial value of the DealerId property.</param> /// <param name="salespersonCode">Initial value of the SalespersonCode property.</param> /// <param name="driverLicenseNumber">Initial value of the DriverLicenseNumber property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="streetAddress">Initial value of the StreetAddress property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="state">Initial value of the State property.</param> /// <param name="zipCode">Initial value of the ZipCode property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="dateCreated">Initial value of the DateCreated property.</param> public static Customer CreateCustomer(global::System.Guid id, global::System.Guid promotionId, global::System.Guid dealerId, global::System.String salespersonCode, global::System.String driverLicenseNumber, global::System.String firstName, global::System.String lastName, global::System.String streetAddress, global::System.String city, global::System.String state, global::System.String zipCode, global::System.String email, global::System.DateTime dateCreated) { Customer customer = new Customer(); customer.Id = id; customer.PromotionId = promotionId; customer.DealerId = dealerId; customer.SalespersonCode = salespersonCode; customer.DriverLicenseNumber = driverLicenseNumber; customer.FirstName = firstName; customer.LastName = lastName; customer.StreetAddress = streetAddress; customer.City = city; customer.State = state; customer.ZipCode = zipCode; customer.Email = email; customer.DateCreated = dateCreated; 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); }