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) { }
public MigrationDbContextWrapper(MigrationDbContext context, CancellationTokenSource tokenSource, IDbQueryCache queryPool) : base(context, tokenSource, queryPool) { }
public CleanSampleDataContext(DbContextOptions <CleanSampleDataContext> options, IDbQueryCache queryPool) : base(options, queryPool) { }
public ServiceBase(IConfiguration config, string tableName, string connStr = defaultConn) : base(config, tableName, connStr) { _tableName = tableName; _dbQueryCache = new DbQueryCache(); }
public ServiceBase(IConfiguration config) : base(config, defaultConn) { _tableName = typeof(T).Name.ToLower().Replace("entity", string.Empty).Replace("model", string.Empty); _dbQueryCache = new DbQueryCache(); }
public NpgsqlDbContext(DbContextOptions <NpgsqlDbContext> options, IDbQueryCache queryPool) : this(options as DbContextOptions, queryPool) { }
public NpgsqlDbContext(DbContextOptions options, IDbQueryCache queryPool) : this(options) { this.queryPool = queryPool; }