Skip to content

Commit

Permalink
Small readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjcowan committed Nov 29, 2024
1 parent 307c51f commit 01577f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ DatabaseMethodsProvider.RegisterFactory(
"ProfiledDbConnection.PostgreSql", new ProfiledPostgreSqlMethodsFactory());
```

The test suite uses this method to profile the database and output sql exception details
to the unit testing logs.

See it in action with the [ProfiledPostgreSqlMethodsFactory](./tests/DapperMatic.Tests/ProviderTests/PostgreSqlDatabaseMethodsTests.cs#L84) class. This factory class demonstrates using a custom `IDbConnection` type `DbQueryLogging.LoggedDbConnection` from the `DbQueryLogging` package. Similar factory classes exist for the other providers.

## Models

- [DxCheckConstraint](src/DapperMatic/Models/DxCheckConstraint.cs)
Expand Down

0 comments on commit 01577f1

Please sign in to comment.