You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 912ff99
Browse filesBrowse the repository at this point in the historyBrowse files
|[EF tools now require framework to be specified for multi-targeted projects](#ef-tools-multi-targeting)| Medium |
26
+
|[SQL Server: Microsoft.Data.SqlClient adds a broker dependency](#sqlclient-broker-dependency)| Low |
26
27
|[Application Name is now injected into the connection string](#sqlserver-application-name)| Low |
27
28
|[SQL Server json data type used by default on Azure SQL and compatibility level 170](#sqlserver-json-data-type)| Low |
28
29
|[Parameterized collections now use multiple parameters by default](#parameterized-collections)| Low |
@@ -83,6 +84,28 @@ You'll need to choose one of the frameworks (e.g., `net9.0`) when running the EF
83
84
84
85
## Low-impact changes
85
86
87
+
<aname="sqlclient-broker-dependency"></a>
88
+
89
+
### SQL Server: Microsoft.Data.SqlClient adds a broker dependency
90
+
91
+
#### Old behavior
92
+
93
+
Earlier versions of Microsoft.Data.SqlClient did not depend on Microsoft.Identity.Client.Broker.
94
+
95
+
#### New behavior
96
+
97
+
Microsoft.Data.SqlClient 6.1.6 introduces a dependency on Microsoft.Identity.Client.Broker, which is required for Microsoft Entra ID authentication and can drastically increase the size of the published application when using the EF Core SQL Server provider.
98
+
99
+
#### Why
100
+
101
+
The additional dependency is introduced by Microsoft.Data.SqlClient, rather than EF Core itself.
102
+
103
+
#### Mitigations
104
+
105
+
If your application doesn't use Microsoft Entra ID authentication, explicitly reference Microsoft.Data.SqlClient 7.1.x in your project to override the version used by EF Core. Starting with version 7.0, Microsoft.Data.SqlClient no longer includes Azure/Entra ID authentication dependencies in its core package.
106
+
107
+
For details, including the additional package required for Entra ID authentication, see [Microsoft.Data.SqlClient has been updated to 7.0](xref:core/what-is-new/ef-core-11.0/breaking-changes#sqlclient-7).
108
+
86
109
<aname="sqlserver-application-name"></a>
87
110
88
111
### Application Name is now injected into the connection string
0 commit comments