Esempio n. 1
0
 public EntityCommand(string entityType, string entityKey = "", Dictionary<string,string> switches = null, ISchemaChecker checker = null, IEntityFormatter formatter = null)
     :base(switches)
 {
     mEntityType = entityType;
     mEntityKey = entityKey;
     mChecker = checker;
     mFormatter = formatter;
 }
Esempio n. 2
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;
 }
Esempio n. 3
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
     };
 }
 public ObserveServiceInstanceCommand(string entityType, string entityKey = "", Dictionary <string, string> switches = null, ISchemaChecker checker = null)
     : base(entityType, entityKey, switches, checker, new LastOperationFormatter())
 {
 }
Esempio n. 5
0
 public CreateEntityCommand(string entityType, Dictionary <string, string> switches = null, ISchemaChecker checker = null)
     : base(entityType, "", switches, checker)
 {
 }
Esempio n. 6
0
 public CreateBindingCommand(Dictionary <string, string> switches = null, ISchemaChecker checker = null)
     : base("binding", switches, checker)
 {
 }
 public UpdateServiceInstanceCommand(Dictionary <string, string> switches = null, ISchemaChecker checker = null)
     : base("service-instance", switches, checker)
 {
 }
Esempio n. 8
0
 public ListEntitiesCommand(string entityType, string entityKey = "", Dictionary <string, string> switches = null, ISchemaChecker checker = null, IEntityFormatter formatter = null)
     : base(entityType, entityKey, switches, checker, formatter)
 {
 }