예제 #1
0
 public OrderStatusViewModel(OrderStatus orderStatus)
 {
     if (orderStatus == null)
     {
         throw new ArgumentNullException("orderStatus");
     }
     this.Model = orderStatus;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the OrderStatuses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrderStatuses(OrderStatus orderStatus)
 {
     base.AddObject("OrderStatuses", orderStatus);
 }
예제 #3
0
 /// <summary>
 /// Create a new OrderStatus object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="code">Initial value of the Code property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="sourceId">Initial value of the SourceId property.</param>
 public static OrderStatus CreateOrderStatus(global::System.Guid id, global::System.String code, global::System.String name, global::System.Int32 sourceId)
 {
     OrderStatus orderStatus = new OrderStatus();
     orderStatus.Id = id;
     orderStatus.Code = code;
     orderStatus.Name = name;
     orderStatus.SourceId = sourceId;
     return orderStatus;
 }