//构造函数 public CouponForm(BathDBDataContext dc, Coupon coupon) { db = dc; if (coupon != null) { newCoupon = false; m_Coupon = coupon; } InitializeComponent(); }
partial void UpdateCoupon(Coupon instance);
partial void DeleteCoupon(Coupon instance);
partial void InsertCoupon(Coupon instance);