Пример #1
0
 public SqlDataStore(IDbEngine dbEngine, ISqlFactory sqlFactory)
 {
     _dbEngine                = dbEngine;
     _sqlFactory              = sqlFactory;
     _dbAccessStrategy        = _sqlFactory.CreateDbAccessStrategy(this);
     _sqlFieldPropertyFactory = _sqlFactory.CreateFieldPropertyFactory();
     _schemaChecker           = _sqlFactory.CreateSchemaChecker(this);
     _connectionPool          = new List <IDbConnection>();
     ConnectionPoolSize       = 20;
 }
Пример #2
0
 public SqlDataStore(IDbEngine dbEngine, ISqlFactory sqlFactory)
 {
     _dbEngine            = dbEngine;
     _sqlFactory          = sqlFactory;
     _dbAccessStrategy    = _sqlFactory.CreateDbAccessStrategy(this);
     FieldPropertyFactory = _sqlFactory.CreateFieldPropertyFactory();
     _schemaChecker       = _sqlFactory.CreateSchemaChecker(this);
     _readConnectionPool  = new ConnectionPool(dbEngine)
     {
         ConnectionPoolSize = 20
     };
     _writeConnectionPool = new ConnectionPool(dbEngine)
     {
         ConnectionPoolSize = 1
     };
 }