Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the OrderDetails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrderDetails(OrderDetail orderDetail)
 {
     base.AddObject("OrderDetails", orderDetail);
 }
Пример #2
0
 /// <summary>
 /// Create a new OrderDetail object.
 /// </summary>
 /// <param name="id">Initial value of the Id 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="totalQuantity">Initial value of the TotalQuantity property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="lastModifiedBy">Initial value of the LastModifiedBy property.</param>
 /// <param name="lastModifiedDate">Initial value of the LastModifiedDate property.</param>
 public static OrderDetail CreateOrderDetail(global::System.Int32 id, global::System.Int32 orderId, global::System.Int32 productId, global::System.Int32 quantity, global::System.Int32 totalQuantity, global::System.Int32 status, global::System.Int32 lastModifiedBy, global::System.DateTime lastModifiedDate)
 {
     OrderDetail orderDetail = new OrderDetail();
     orderDetail.Id = id;
     orderDetail.OrderId = orderId;
     orderDetail.ProductId = productId;
     orderDetail.Quantity = quantity;
     orderDetail.TotalQuantity = totalQuantity;
     orderDetail.Status = status;
     orderDetail.LastModifiedBy = lastModifiedBy;
     orderDetail.LastModifiedDate = lastModifiedDate;
     return orderDetail;
 }