/// <summary> /// Create a new Customer object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="customerName">Initial value of the CustomerName property.</param> /// <param name="customer_CustomerGroup">Initial value of the Customer_CustomerGroup property.</param> /// <param name="customer_TransportRoute">Initial value of the Customer_TransportRoute property.</param> /// <param name="discontinued">Initial value of the Discontinued property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static Customer CreateCustomer(global::System.Int32 id, global::System.String customerName, global::System.Int32 customer_CustomerGroup, global::System.Int32 customer_TransportRoute, global::System.Boolean discontinued, global::System.Byte[] rowVersion) { Customer customer = new Customer(); customer.Id = id; customer.CustomerName = customerName; customer.Customer_CustomerGroup = customer_CustomerGroup; customer.Customer_TransportRoute = customer_TransportRoute; customer.Discontinued = discontinued; customer.RowVersion = rowVersion; 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); }
/// <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="rowVersion">Initial value of the RowVersion property.</param> public static Customer CreateCustomer(global::System.Int32 id, global::System.String name, global::System.Byte[] rowVersion) { Customer customer = new Customer(); customer.Id = id; customer.Name = name; customer.RowVersion = rowVersion; return customer; }