public PartialDatabaseManager(string databaseFolder, string databaseExtension, IDatabaseFileMapper <PartialDatabase, DataFile> mapper, IDataManagerEventManager dataEventManager, Process process) { _dataFileManager = new DataFileManager(); _databaseFileMapper = mapper; _databaseFolder = databaseFolder; _databaseExtension = databaseExtension; if (_databaseFileMapper is null) { _databaseFileMapper = new PartialDatabaseFileMapper(); } _databases = new List <PartialDatabase>(); _process = process; }
public DatabaseManager(string databaseFolder, string databaseExtension, IDatabaseFileMapper <Database, DataFile> mapper, IDataManagerEventManager dataEventManager, Process process) { _dataFileManager = new DataFileManager(); _databaseFileMapper = mapper; _databaseFolder = databaseFolder; _databaseExtension = databaseExtension; if (_databaseFileMapper is null) { _databaseFileMapper = new DatabaseFileMapper(); } _databases = new List <Database>(); _process = process; // new _storageManager = new StorageManager(_process); _databases2 = new List <Database2>(); }