connect-from-dotnet

Installation
SKILL.md

Connect from .NET

The driver is Microsoft.Data.SqlClient, encryption is on by default, pooling is automatic, and since version 7.0 Microsoft Entra authentication needs a second package reference that nothing in the connection string hints at.

Encryption doctrine, retry and pool sizing are the same in every language and live in connect-to-azure-sql. Entity Framework Core is ef-core-azure-sql.

The packages

dotnet add package Microsoft.Data.SqlClient

System.Data.SqlClient is the older provider and receives no new features. A using System.Data.SqlClient; in a new file is a mistake worth fixing first.

Gotcha: Entra ID needs a second package from version 7.0

Installs
55
GitHub Stars
66
First Seen
Sep 28, 2026