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