Exemplo n.º 1
0
 public static SQLiteDatabaseSettings ToSQLite(this IDBDatabaseSettings settings)
 {
     if (!(settings is SQLiteDatabaseSettings concreteSettings))
     {
         throw new ArgumentException("SQLite implementation requires a SQLite Database configuration",
                                     nameof(settings));
     }
     return(concreteSettings);
 }
Exemplo n.º 2
0
 public IDBDatabase CreateDatabase(IDBDatabaseSettings settings)
 {
     throw new NotSupportedException("SQLite does not support creating databases, but you can attach databases if you require multi databases in one connection.");
 }
Exemplo n.º 3
0
 public IDBDatabase                CreateDatabase(IDBDatabaseSettings settings) => _databaseAccess.CreateDatabase(settings);