/// <summary> /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrders(Order order) { base.AddObject("Orders", order); }
/// <summary> /// Create a new Order object. /// </summary> /// <param name="number">Initial value of the Number property.</param> /// <param name="autoNumber">Initial value of the AutoNumber property.</param> /// <param name="creationDate">Initial value of the CreationDate property.</param> /// <param name="status">Initial value of the Status property.</param> public static Order CreateOrder(global::System.Int32 number, global::System.String autoNumber, global::System.DateTime creationDate, global::System.Int32 status) { Order order = new Order(); order.Number = number; order.AutoNumber = autoNumber; order.CreationDate = creationDate; order.Status = status; return order; }