/// <summary>
 /// 用于向 OrderBook EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToOrderBook(OrderBook orderBook)
 {
     base.AddObject("OrderBook", orderBook);
 }
 /// <summary>
 /// 创建新的 OrderBook 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="orderID">OrderID 属性的初始值。</param>
 /// <param name="bookID">BookID 属性的初始值。</param>
 /// <param name="quantity">Quantity 属性的初始值。</param>
 /// <param name="unitPrice">UnitPrice 属性的初始值。</param>
 public static OrderBook CreateOrderBook(global::System.Int32 id, global::System.String orderID, global::System.Int32 bookID, global::System.Int32 quantity, global::System.Decimal unitPrice)
 {
     OrderBook orderBook = new OrderBook();
     orderBook.Id = id;
     orderBook.OrderID = orderID;
     orderBook.BookID = bookID;
     orderBook.Quantity = quantity;
     orderBook.UnitPrice = unitPrice;
     return orderBook;
 }