コード例 #1
0
        public PageLabelsSqliteBackend(IBackendSettingsService backendSettings, IConverter <DbDataReader, IEnumerable <Guid> > toLabelsIdConverter)
        {
            _sqliteStorage = new SqliteDatabase(new SqliteStorageOptions {
                Path = backendSettings.GetSqliteBackendPath()
            });
            _toLabelsIdConverter = toLabelsIdConverter;

            _initTask = CreateTable();
        }
コード例 #2
0
        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();
        }