/// <summary>
 /// Deprecated Method for adding a new object to the OrderItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrderItems(OrderItem orderItem)
 {
     base.AddObject("OrderItems", orderItem);
 }
 /// <summary>
 /// Create a new OrderItem object.
 /// </summary>
 /// <param name="orderItemId">Initial value of the OrderItemId property.</param>
 /// <param name="orderId">Initial value of the OrderId property.</param>
 /// <param name="productId">Initial value of the ProductId property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="isDeleted">Initial value of the IsDeleted property.</param>
 public static OrderItem CreateOrderItem(global::System.Int64 orderItemId, global::System.Int64 orderId, global::System.Int32 productId, global::System.Int32 quantity, global::System.Boolean isDeleted)
 {
     OrderItem orderItem = new OrderItem();
     orderItem.OrderItemId = orderItemId;
     orderItem.OrderId = orderId;
     orderItem.ProductId = productId;
     orderItem.Quantity = quantity;
     orderItem.IsDeleted = isDeleted;
     return orderItem;
 }