public EFUnitOfWork(IEFDatabaseContext context)
 {
     this.context = context;
 }
 public IDbContext Get()
 => dataContext ?? (dataContext = new EFDatabaseContext(options));
Exemple #3
0
 public TestBase()
 {
     this.server      = new TestServer(new WebHostBuilder().UseStartup <Startup>());
     this.Services    = this.server.Host.Services;
     this.DataContext = this.Services.GetService <IEFDatabaseContext>();
 }
 public EFKeyedRepository(IEFDatabaseContext context)
     : base(context)
 {
 }
Exemple #5
0
 public TestEntityRepository(IEFDatabaseContext context) : base(context)
 {
 }
Exemple #6
0
 protected EFRepositoryBase(IEFDatabaseContext context)
 {
     this.dataContext = context;
     this.dbSet       = this.dataContext.Set <T>();
 }