コード例 #1
0
 /// <summary>
 /// Create a new Contribution object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 /// <param name="expirationDate">Initial value of the ExpirationDate property.</param>
 public static Contribution CreateContribution(global::System.Int64 id, global::System.Double amount, global::System.DateTime expirationDate)
 {
     Contribution contribution = new Contribution();
     contribution.Id = id;
     contribution.Amount = amount;
     contribution.ExpirationDate = expirationDate;
     return contribution;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Contributions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContributions(Contribution contribution)
 {
     base.AddObject("Contributions", contribution);
 }