예제 #1
0
 public UnitOfWorkRepository(string connectionString)
 {
     db            = new EFdbContext(connectionString);
     userManager   = new ApplicationUserManager(new UserStore <ApplicationUser>(db));
     roleManager   = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db));
     clientManager = new ClientManager(db);
 }
예제 #2
0
        public ActionResult Bid([Bind(Include = "ID,Item,Buyer,Price,Timestamp")] Bid BidObject)
        {
            EFdbContext db = new EFdbContext();

            db.Bids.Add(BidObject);
            db.SaveChanges();

            //return a different page or error
            return(View("confirmation"));
        }
 public ClientManager(EFdbContext context)
 {
     this.db = context;
 }
예제 #4
0
 public CategoryRepository(EFdbContext context)
 {
     db = context;
 }
예제 #5
0
 public CartRepository(EFdbContext context)
 {
     this.db = context;
 }
예제 #6
0
 public ProductRepository(EFdbContext context)
 {
     db = context;
 }