public UnitOfWork()
 {
     this.dbContext = new MovieCatalogDbContext();
     dbContext.Database.EnsureCreated();
 }
Пример #2
0
 public BaseRepository(MovieCatalogDbContext dbContext)
 {
     this.dbContext = dbContext;
     Entities       = dbContext.Set <TEntity>();
 }
 public UnitOfWork()
 {
     this.dbContext = new MovieCatalogDbContext();
 }