Blog

Building a typed DbConnection factory

When working on applications using multiple databases, you not only have to know which connection string to use and which the DbConnection we need. How can we implement a service expecting the calling application to give us the required connection string.

Read more

DbProviderFactory

Since .Net 2.0, DbProviderFactory helped building application working on database without knowing the type of the database. It was easier with the old app.config file but not that hard to put back in the appsettings.json file.

Read more