/// <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="customer_id">Initial value of the customer_id property.</param> /// <param name="store_id">Initial value of the store_id property.</param> /// <param name="first_name">Initial value of the first_name property.</param> /// <param name="last_name">Initial value of the last_name property.</param> /// <param name="address_id">Initial value of the address_id property.</param> /// <param name="active">Initial value of the active property.</param> /// <param name="create_date">Initial value of the create_date property.</param> /// <param name="last_update">Initial value of the last_update property.</param> public static customer Createcustomer(global::System.Int32 customer_id, global::System.Byte store_id, global::System.String first_name, global::System.String last_name, global::System.Int32 address_id, global::System.Boolean active, global::System.DateTime create_date, global::System.DateTime last_update) { customer customer = new customer(); customer.customer_id = customer_id; customer.store_id = store_id; customer.first_name = first_name; customer.last_name = last_name; customer.address_id = address_id; customer.active = active; customer.create_date = create_date; customer.last_update = last_update; return customer; }