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