Ejemplo n.º 1
0
 /// <summary>
 /// 用于向 OrderDetail EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToOrderDetail(OrderDetail orderDetail)
 {
     base.AddObject("OrderDetail", orderDetail);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 创建新的 OrderDetail 对象。
 /// </summary>
 /// <param name="orderDetailId">OrderDetailId 属性的初始值。</param>
 /// <param name="orderId">OrderId 属性的初始值。</param>
 /// <param name="productId">ProductId 属性的初始值。</param>
 /// <param name="productName">ProductName 属性的初始值。</param>
 /// <param name="price">Price 属性的初始值。</param>
 /// <param name="productCount">ProductCount 属性的初始值。</param>
 public static OrderDetail CreateOrderDetail(global::System.Int64 orderDetailId, global::System.Guid orderId, global::System.Int32 productId, global::System.String productName, global::System.Decimal price, global::System.Int32 productCount)
 {
     OrderDetail orderDetail = new OrderDetail();
     orderDetail.OrderDetailId = orderDetailId;
     orderDetail.OrderId = orderId;
     orderDetail.ProductId = productId;
     orderDetail.ProductName = productName;
     orderDetail.Price = price;
     orderDetail.ProductCount = productCount;
     return orderDetail;
 }