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