public UnitOfWork()
 {
     this.dbContext = new MovieCatalogDbContext();
     dbContext.Database.EnsureCreated();
 }
Esempio n. 2
0
 public BaseRepository(MovieCatalogDbContext dbContext)
 {
     this.dbContext = dbContext;
     Entities       = dbContext.Set <TEntity>();
 }
 public UnitOfWork()
 {
     this.dbContext = new MovieCatalogDbContext();
 }