public CachedDbQueries(IDbQueries inner, IDbQueryCache cache)
        {
            Require.NotNull(inner, "inner");
            Require.NotNull(cache, "cache");

            _inner = inner;
            _cache = cache;
        }
 public DbContextWrapper(
     TContext context,
     CancellationTokenSource tokenSource,
     IDbQueryCache queryPool)
 {
     this.context     = context;
     this.tokenSource = tokenSource;
     this.queryPool   = queryPool;
 }
 public BoardlessDataContext(DbContextOptions <BoardlessDataContext> options, IDbQueryCache queryPool) : base(options, queryPool)
 {
 }
Beispiel #4
0
 public MigrationDbContextWrapper(MigrationDbContext context, CancellationTokenSource tokenSource, IDbQueryCache queryPool) : base(context, tokenSource, queryPool)
 {
 }
Beispiel #5
0
 public CleanSampleDataContext(DbContextOptions <CleanSampleDataContext> options, IDbQueryCache queryPool) : base(options, queryPool)
 {
 }
Beispiel #6
0
 public ServiceBase(IConfiguration config, string tableName, string connStr = defaultConn) : base(config, tableName, connStr)
 {
     _tableName    = tableName;
     _dbQueryCache = new DbQueryCache();
 }
Beispiel #7
0
 public ServiceBase(IConfiguration config) : base(config, defaultConn)
 {
     _tableName    = typeof(T).Name.ToLower().Replace("entity", string.Empty).Replace("model", string.Empty);
     _dbQueryCache = new DbQueryCache();
 }
Beispiel #8
0
 public NpgsqlDbContext(DbContextOptions <NpgsqlDbContext> options, IDbQueryCache queryPool) : this(options as DbContextOptions, queryPool)
 {
 }
Beispiel #9
0
 public NpgsqlDbContext(DbContextOptions options, IDbQueryCache queryPool) : this(options)
 {
     this.queryPool = queryPool;
 }