コード例 #1
0
        public SQLiteDatabaseProvider(string name, SQLiteOptions options)
        {
            _name    = name;
            _options = options.DBConfig;
            _builder = new SqliteConnectionStringBuilder
            {
                DataSource = _options.DataSource,
                Mode       = _options.OpenMode,
                Cache      = _options.CacheMode
            };

            _conns = new ConcurrentDictionary <int, SqliteConnection>();
        }
コード例 #2
0
 public SQLiteDatabaseProvider(string name, SQLiteOptions options)
 {
     this._name    = name;
     this._options = options.DBConfig;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:EasyCaching.SQLite.SQLiteDatabaseProvider"/> class.
 /// </summary>
 /// <param name="optionAction">Option action.</param>
 public SQLiteDatabaseProvider(IOptionsMonitor <SQLiteOptions> optionAction)
 {
     this._options = optionAction.CurrentValue.DBConfig;
 }