Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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())
 {
 }
Beispiel #5
0
 public CreateEntityCommand(string entityType, Dictionary <string, string> switches = null, ISchemaChecker checker = null)
     : base(entityType, "", switches, checker)
 {
 }
Beispiel #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)
 {
 }
Beispiel #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)
 {
 }