/// <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="id">Initial value of the id property.</param> /// <param name="registered_business_name">Initial value of the registered_business_name property.</param> /// <param name="trading_name">Initial value of the trading_name property.</param> /// <param name="year_of_business_commenced">Initial value of the year_of_business_commenced property.</param> /// <param name="aBN_ACN">Initial value of the ABN_ACN property.</param> /// <param name="nature_of_operation">Initial value of the nature_of_operation property.</param> /// <param name="postal_address_id">Initial value of the postal_address_id property.</param> /// <param name="contact_first_name">Initial value of the contact_first_name property.</param> /// <param name="contact_last_name">Initial value of the contact_last_name property.</param> /// <param name="position">Initial value of the position property.</param> /// <param name="phone_no">Initial value of the phone_no property.</param> /// <param name="mobile_no">Initial value of the mobile_no property.</param> /// <param name="email">Initial value of the email property.</param> /// <param name="monthly_credit_limit">Initial value of the monthly_credit_limit property.</param> /// <param name="business_type">Initial value of the business_type property.</param> public static Customer CreateCustomer(global::System.Int32 id, global::System.String registered_business_name, global::System.String trading_name, global::System.Int32 year_of_business_commenced, global::System.String aBN_ACN, global::System.String nature_of_operation, global::System.Int32 postal_address_id, global::System.String contact_first_name, global::System.String contact_last_name, global::System.String position, global::System.String phone_no, global::System.String mobile_no, global::System.String email, global::System.Decimal monthly_credit_limit, global::System.String business_type) { Customer customer = new Customer(); customer.id = id; customer.registered_business_name = registered_business_name; customer.trading_name = trading_name; customer.year_of_business_commenced = year_of_business_commenced; customer.ABN_ACN = aBN_ACN; customer.nature_of_operation = nature_of_operation; customer.postal_address_id = postal_address_id; customer.contact_first_name = contact_first_name; customer.contact_last_name = contact_last_name; customer.position = position; customer.phone_no = phone_no; customer.mobile_no = mobile_no; customer.email = email; customer.monthly_credit_limit = monthly_credit_limit; customer.business_type = business_type; return customer; }