public DbManager() { context = new ShopDbContext(); //context.SaveChanges(); }
internal GenericRepository(ShopDbContext context) { this.context = context; this.dbSet = context.Set <TEntity>(); }