public ActionResult Index() { using (var context = new InternetShopContext()) { context.Users.Add(new User() { Password = "******", ConfirmPassword = "******", Surname = "Vasiy", Name = "Petya" }); var a = context.Users; } return(View()); }
public OrderItemRepository(InternetShopContext context) { db = context; }
public BasketRepository(InternetShopContext db) { this.db = db; this.dbSet = db.Set <Basket>(); }
public ProductRepository(InternetShopContext db) { this.db = db; this.dbSet = db.Set <Product>(); }
public OrderRepository(InternetShopContext db) { this.db = db; this.dbSet = db.Set <Order>(); }
public UnitOfWork(IInternetShopContext context) { this.context = context as InternetShopContext; }
public CustomerRepository(InternetShopContext context) { db = context; }
public EFUnitOfWork(InternetShopContext internetShopContext) { _db = internetShopContext; }