コード例 #1
0
 /// <summary>
 /// Create a new Coupon object.
 /// </summary>
 /// <param name="couponId">Initial value of CouponId.</param>
 public static Coupon CreateCoupon(long couponId)
 {
     Coupon coupon = new Coupon();
     coupon.CouponId = couponId;
     return coupon;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Coupons EntitySet.
 /// </summary>
 public void AddToCoupons(Coupon coupon)
 {
     base.AddObject("Coupons", coupon);
 }