/// <summary> /// Deprecated Method for adding a new object to the Coupons EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCoupons(Coupons coupons) { base.AddObject("Coupons", coupons); }
/// <summary> /// Create a new Coupons object. /// </summary> /// <param name="c_id">Initial value of the c_id property.</param> /// <param name="c_code">Initial value of the c_code property.</param> /// <param name="c_username">Initial value of the c_username property.</param> /// <param name="c_start_date">Initial value of the c_start_date property.</param> /// <param name="c_due_date">Initial value of the c_due_date property.</param> /// <param name="c_max_use">Initial value of the c_max_use property.</param> /// <param name="c_type_id">Initial value of the c_type_id property.</param> /// <param name="c_used">Initial value of the c_used property.</param> /// <param name="c_only_new_user">Initial value of the c_only_new_user property.</param> public static Coupons CreateCoupons(global::System.Int32 c_id, global::System.String c_code, global::System.String c_username, global::System.DateTime c_start_date, global::System.DateTime c_due_date, global::System.Int32 c_max_use, global::System.Int32 c_type_id, global::System.Int32 c_used, global::System.Boolean c_only_new_user) { Coupons coupons = new Coupons(); coupons.c_id = c_id; coupons.c_code = c_code; coupons.c_username = c_username; coupons.c_start_date = c_start_date; coupons.c_due_date = c_due_date; coupons.c_max_use = c_max_use; coupons.c_type_id = c_type_id; coupons.c_used = c_used; coupons.c_only_new_user = c_only_new_user; return coupons; }