public EFUnitOfWork(IEFDatabaseContext context) { this.context = context; }
public IDbContext Get() => dataContext ?? (dataContext = new EFDatabaseContext(options));
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) { }
public TestEntityRepository(IEFDatabaseContext context) : base(context) { }
protected EFRepositoryBase(IEFDatabaseContext context) { this.dataContext = context; this.dbSet = this.dataContext.Set <T>(); }