コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SpecialOffers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSpecialOffers(SpecialOffer specialOffer)
 {
     base.AddObject("SpecialOffers", specialOffer);
 }
コード例 #2
0
 /// <summary>
 /// Create a new SpecialOffer object.
 /// </summary>
 /// <param name="specialOfferID">Initial value of the SpecialOfferID property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="discountPct">Initial value of the DiscountPct property.</param>
 /// <param name="type">Initial value of the Type property.</param>
 /// <param name="category">Initial value of the Category property.</param>
 /// <param name="startDate">Initial value of the StartDate property.</param>
 /// <param name="endDate">Initial value of the EndDate property.</param>
 /// <param name="minQty">Initial value of the MinQty property.</param>
 /// <param name="rowguid">Initial value of the rowguid property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static SpecialOffer CreateSpecialOffer(global::System.Int32 specialOfferID, global::System.String description, global::System.Decimal discountPct, global::System.String type, global::System.String category, global::System.DateTime startDate, global::System.DateTime endDate, global::System.Int32 minQty, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     SpecialOffer specialOffer = new SpecialOffer();
     specialOffer.SpecialOfferID = specialOfferID;
     specialOffer.Description = description;
     specialOffer.DiscountPct = discountPct;
     specialOffer.Type = type;
     specialOffer.Category = category;
     specialOffer.StartDate = startDate;
     specialOffer.EndDate = endDate;
     specialOffer.MinQty = minQty;
     specialOffer.rowguid = rowguid;
     specialOffer.ModifiedDate = modifiedDate;
     return specialOffer;
 }