コード例 #1
0
 /// <summary>
 /// Create a new Deal object.
 /// </summary>
 /// <param name="dealID">Initial value of the DealID property.</param>
 /// <param name="normalCost">Initial value of the NormalCost property.</param>
 /// <param name="discount">Initial value of the Discount property.</param>
 /// <param name="monthlyCost">Initial value of the MonthlyCost property.</param>
 /// <param name="commission">Initial value of the Commission property.</param>
 /// <param name="vouchersPerPeriod">Initial value of the VouchersPerPeriod property.</param>
 /// <param name="merchantID">Initial value of the MerchantID property.</param>
 public static Deal CreateDeal(global::System.Int64 dealID, global::System.Decimal normalCost, global::System.Decimal discount, global::System.Decimal monthlyCost, global::System.Decimal commission, global::System.Decimal vouchersPerPeriod, global::System.Int64 merchantID)
 {
     Deal deal = new Deal();
     deal.DealID = dealID;
     deal.NormalCost = normalCost;
     deal.Discount = discount;
     deal.MonthlyCost = monthlyCost;
     deal.Commission = commission;
     deal.VouchersPerPeriod = vouchersPerPeriod;
     deal.MerchantID = merchantID;
     return deal;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Deals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDeals(Deal deal)
 {
     base.AddObject("Deals", deal);
 }