Ejemplo n.º 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>();
        }
Ejemplo n.º 2
0
 public SQLiteDatabaseProvider(string name, SQLiteOptions options)
 {
     this._name    = name;
     this._options = options.DBConfig;
 }
Ejemplo n.º 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;
 }