Пример #1
0
 /// <summary>
 /// 用于向 Produce_Products EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToProduce_Products(Produce_Product produce_Product)
 {
     base.AddObject("Produce_Products", produce_Product);
 }
Пример #2
0
 /// <summary>
 /// 创建新的 Produce_Product 对象。
 /// </summary>
 /// <param name="amount">Amount 属性的初始值。</param>
 /// <param name="remainAmount">RemainAmount 属性的初始值。</param>
 /// <param name="orderDate">OrderDate 属性的初始值。</param>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="isEnd">IsEnd 属性的初始值。</param>
 /// <param name="modelPrice">ModelPrice 属性的初始值。</param>
 /// <param name="exchangeRate">ExchangeRate 属性的初始值。</param>
 public static Produce_Product CreateProduce_Product(global::System.Int32 amount, global::System.Int32 remainAmount, global::System.DateTime orderDate, global::System.Int32 id, global::System.Boolean isEnd, global::System.Decimal modelPrice, global::System.Decimal exchangeRate)
 {
     Produce_Product produce_Product = new Produce_Product();
     produce_Product.Amount = amount;
     produce_Product.RemainAmount = remainAmount;
     produce_Product.OrderDate = orderDate;
     produce_Product.Id = id;
     produce_Product.IsEnd = isEnd;
     produce_Product.ModelPrice = modelPrice;
     produce_Product.ExchangeRate = exchangeRate;
     return produce_Product;
 }