コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Offers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOffers(Offer offer)
 {
     base.AddObject("Offers", offer);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Offer object.
 /// </summary>
 /// <param name="offerId">Initial value of the OfferId property.</param>
 /// <param name="buyerName">Initial value of the BuyerName property.</param>
 /// <param name="requestId">Initial value of the RequestId property.</param>
 /// <param name="emailAddress">Initial value of the EmailAddress property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 /// <param name="approved">Initial value of the Approved property.</param>
 public static Offer CreateOffer(global::System.Int32 offerId, global::System.String buyerName, global::System.Guid requestId, global::System.String emailAddress, global::System.Decimal amount, global::System.Boolean approved)
 {
     Offer offer = new Offer();
     offer.OfferId = offerId;
     offer.BuyerName = buyerName;
     offer.RequestId = requestId;
     offer.EmailAddress = emailAddress;
     offer.Amount = amount;
     offer.Approved = approved;
     return offer;
 }