public static SqlDialect GetDialectFor(DbProviderFactory provider, string connectionString) { using (var connection = provider.OpenConnection(connectionString)) { return GetDialectFor(connection); } }