public PageLabelsSqliteBackend(IBackendSettingsService backendSettings, IConverter <DbDataReader, IEnumerable <Guid> > toLabelsIdConverter) { _sqliteStorage = new SqliteDatabase(new SqliteStorageOptions { Path = backendSettings.GetSqliteBackendPath() }); _toLabelsIdConverter = toLabelsIdConverter; _initTask = CreateTable(); }
public LabelSqliteBackend(IBackendSettingsService backendSettings, IConverter <DbDataReader, Label> converter, IConverter <DbDataReader, IList <Label> > toLabelsConverter) { _toLabelConverter = converter; _toLabelsConverter = toLabelsConverter; _sqliteStorage = new SqliteDatabase(new SqliteStorageOptions { Path = backendSettings.GetSqliteBackendPath() }); _initTask = CreateTable(); }