Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrders(Order order)
 {
     base.AddObject("Orders", order);
 }
Пример #2
0
 /// <summary>
 /// Create a new Order object.
 /// </summary>
 /// <param name="orderId">Initial value of the OrderId property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="userCreditCardId">Initial value of the UserCreditCardId property.</param>
 /// <param name="purchaseDate">Initial value of the PurchaseDate property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="isDeleted">Initial value of the IsDeleted property.</param>
 public static Order CreateOrder(global::System.Int64 orderId, global::System.Guid userId, global::System.Int32 userCreditCardId, global::System.DateTime purchaseDate, global::System.String status, global::System.Boolean isDeleted)
 {
     Order order = new Order();
     order.OrderId = orderId;
     order.UserId = userId;
     order.UserCreditCardId = userCreditCardId;
     order.PurchaseDate = purchaseDate;
     order.Status = status;
     order.IsDeleted = isDeleted;
     return order;
 }