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