/// <summary>
 /// 用于向 Orders EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToOrders(Orders orders)
 {
     base.AddObject("Orders", orders);
 }
 /// <summary>
 /// 创建新的 Orders 对象。
 /// </summary>
 /// <param name="orderId">OrderId 属性的初始值。</param>
 /// <param name="orderDate">OrderDate 属性的初始值。</param>
 /// <param name="userId">UserId 属性的初始值。</param>
 /// <param name="totalPrice">TotalPrice 属性的初始值。</param>
 /// <param name="state">state 属性的初始值。</param>
 public static Orders CreateOrders(global::System.String orderId, global::System.DateTime orderDate, global::System.Int32 userId, global::System.Decimal totalPrice, global::System.Int32 state)
 {
     Orders orders = new Orders();
     orders.OrderId = orderId;
     orders.OrderDate = orderDate;
     orders.UserId = userId;
     orders.TotalPrice = totalPrice;
     orders.state = state;
     return orders;
 }