public MongoDbRdDataStorage( string id, RdDataMongoClient rdDataClient, IIdGeneratorManager idGeneratorManager) { Id = id; this.rdDataClient = rdDataClient; this.idGeneratorManager = idGeneratorManager; }
public BlobRdDataStorage( string id, IBinaryDataStorage binaryDataStorage, IRdDataStorage metadataStorage, IIdGeneratorManager idGeneratorManager) { Id = id; this.binaryDataStorage = binaryDataStorage; this.metadataStorage = metadataStorage; this.idGeneratorManager = idGeneratorManager; supportedDataTypes = binaryDataObjectSplitters.Keys.ToArray(); }
public MssqlRdDataStorage( string id, string serverAddress, string databaseName, string sqlUserName, string sqlUserPassword, IIdGeneratorManager idGeneratorManager) { Id = id; this.databaseName = databaseName; this.idGeneratorManager = idGeneratorManager; var sqlConnectionString = new SqlConnectionStringBuilder { DataSource = serverAddress, InitialCatalog = databaseName, UserID = sqlUserName, Password = sqlUserPassword }.ConnectionString; queryBuilder = new QueryBuilder(fieldName => fieldName.Replace('.', GenericDataContainerTraversal.PathDelimiter)); sqlQueryExecutor = new SqlQueryExecutor(sqlConnectionString); }