コード例 #1
0
ファイル: JamieEntityModel.cs プロジェクト: Sleeckx/Jamie
 /// <summary>
 /// Create a new Weight object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 public static Weight CreateWeight(global::System.Int32 id, global::System.Decimal amount, global::System.DateTime date)
 {
     Weight weight = new Weight();
     weight.Id = id;
     weight.Amount = amount;
     weight.Date = date;
     return weight;
 }
コード例 #2
0
ファイル: JamieEntityModel.cs プロジェクト: Sleeckx/Jamie
 /// <summary>
 /// Deprecated Method for adding a new object to the Weights EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToWeights(Weight weight)
 {
     base.AddObject("Weights", weight);
 }