How to Reduce Connection Pools Hitting Multiple Databases

Microsoft’s connection pooling built in to the .Net Framework greatly improves performance by allowing hundreds of database calls to share the same pool of connections used to connect to the database. The .Net Framework creates a new pool of connections for each unique connection string. This works fantastic when your web application connects to a […]

Read more
How to Use Entity Framework Connect to SQL Server

This post shows goes through the steps to connect a .NET 6 API to SQL Server using Entity Framework Core, and automatically create/update the SQL Server database from code using EF Core migrations. We’ll start with an example .NET 6 CRUD API from a tutorial I posted recently, it uses the EF Core InMemory db […]

Read more
Use Serilog ASP.NET Core to SQL Server Database

Logging is an essential feature for any application, as it is necessary for detecting, investigating, and debugging issues. Serilog is a third-party, open source library that allows .NET developers to log structured data to the console, to files, and to several other kinds of data stores.  This article discusses how we can use Serilog to log structured […]

Read more