コード例 #1
0
ファイル: EduNuke1.Designer.cs プロジェクト: MSAS/edunuke
 /// <summary>
 /// Create a new Stock object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="remarks">Initial value of the Remarks property.</param>
 /// <param name="unit">Initial value of the Unit property.</param>
 public static Stock CreateStock(global::System.Int32 id, global::System.Int32 quantity, global::System.String remarks, global::System.String unit)
 {
     Stock stock = new Stock();
     stock.Id = id;
     stock.Quantity = quantity;
     stock.Remarks = remarks;
     stock.Unit = unit;
     return stock;
 }
コード例 #2
0
ファイル: EduNuke1.Designer.cs プロジェクト: MSAS/edunuke
 /// <summary>
 /// Deprecated Method for adding a new object to the Stocks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStocks(Stock stock)
 {
     base.AddObject("Stocks", stock);
 }