Пример #1
0
 public async Task TestDatabase()
 {
     var database = new MySqlDatabase("Server=127.0.0.1;Uid=test;Pwd=test!123;Database=butterfly_db_test");
     await DatabaseUnitTest.TestDatabase(database);
 }
Пример #2
0
 public async Task TestDatabase()
 {
     IDatabase database = new SqlServerDatabase(connectionString, forceIsolationLevelSnapshot: true);
     await DatabaseUnitTest.TestDatabase(database, Assembly.GetExecutingAssembly(), dbSql);
 }
Пример #3
0
 public async Task TestDatabase()
 {
     var database = new PostgresDatabase(connectionString);
     await DatabaseUnitTest.TestDatabase(database, Assembly.GetExecutingAssembly(), dbSql);
 }
Пример #4
0
 public async Task TestDatabase()
 {
     // See https://github.com/aspnet/Microsoft.Data.Sqlite/wiki/Connection-Strings
     IDatabase database = new Butterfly.Db.SQLite.SQLiteDatabase("Filename=./my_database.db");
     await DatabaseUnitTest.TestDatabase(database);
 }