/// <summary> /// Create a new Customer object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="address">Initial value of the Address property.</param> /// <param name="contact">Initial value of the Contact property.</param> /// <param name="tel">Initial value of the Tel property.</param> /// <param name="trade">Initial value of the Trade property.</param> /// <param name="natureId">Initial value of the NatureId property.</param> /// <param name="grade">Initial value of the Grade property.</param> /// <param name="business">Initial value of the Business property.</param> public static Customer CreateCustomer(global::System.Int32 id, global::System.String name, global::System.String address, global::System.String contact, global::System.String tel, global::System.String trade, global::System.Int32 natureId, global::System.Int32 grade, global::System.String business) { Customer customer = new Customer(); customer.Id = id; customer.Name = name; customer.Address = address; customer.Contact = contact; customer.Tel = tel; customer.Trade = trade; customer.NatureId = natureId; customer.Grade = grade; customer.Business = business; return customer; }
/// <summary> /// Deprecated Method for adding a new object to the Customer EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCustomer(Customer customer) { base.AddObject("Customer", customer); }