/// <summary>
 /// Deprecated Method for adding a new object to the Vouchers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToVouchers(Voucher voucher)
 {
     base.AddObject("Vouchers", voucher);
 }
 /// <summary>
 /// Create a new Voucher object.
 /// </summary>
 /// <param name="voucherID">Initial value of the VoucherID property.</param>
 /// <param name="consumerID">Initial value of the ConsumerID property.</param>
 /// <param name="dealID">Initial value of the DealID property.</param>
 /// <param name="used">Initial value of the Used property.</param>
 /// <param name="datePurchased">Initial value of the DatePurchased property.</param>
 public static Voucher CreateVoucher(global::System.Int64 voucherID, global::System.Int64 consumerID, global::System.Int64 dealID, global::System.Boolean used, global::System.DateTime datePurchased)
 {
     Voucher voucher = new Voucher();
     voucher.VoucherID = voucherID;
     voucher.ConsumerID = consumerID;
     voucher.DealID = dealID;
     voucher.Used = used;
     voucher.DatePurchased = datePurchased;
     return voucher;
 }