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); }
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; }
public CategoryRepository(EFdbContext context) { db = context; }
public CartRepository(EFdbContext context) { this.db = context; }
public ProductRepository(EFdbContext context) { db = context; }