public DatabaseModel CreateModel(string createSql, IEnumerable <string> tables = null, ILogger logger = null) { TestStore.ExecuteNonQuery(createSql); return(new SqlServerDatabaseModelFactory( new DiagnosticsLogger <DbLoggerCategory.Scaffolding>( TestDesignLoggerFactory, new LoggingOptions(), new DiagnosticListener("Fake"))) .Create(TestStore.ConnectionString, tables ?? Enumerable.Empty <string>(), Enumerable.Empty <string>())); }