Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion entity-framework/core/managing-schemas/migrations/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dotnet ef migrations script --idempotent -o artifacts/migrate.sql

Note that idempotent scripts depend on provider support. For example, SQLite doesn't currently support generating them; in that case generate a versioned script pair instead.

Use Azure DevOps [approvals and gates](https://learn.microsoft.com/azure/devops/pipelines/process/approvals) (or the equivalent in your CI system) to hold the deployment until a reviewer signs off on the exact SQL:
Use Azure DevOps [approvals and gates](/azure/devops/pipelines/process/approvals) (or the equivalent in your CI system) to hold the deployment until a reviewer signs off on the exact SQL:

```yaml
stages:
Expand Down
23 changes: 23 additions & 0 deletions entity-framework/core/what-is-new/ef-core-10.0/breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ This page documents API and behavior changes that have the potential to break ex
| **Breaking change** | **Impact** |
|:--------------------------------------------------------------------------------------------------------------- | -----------|
| [EF tools now require framework to be specified for multi-targeted projects](#ef-tools-multi-targeting) | Medium |
| [SQL Server: Microsoft.Data.SqlClient adds a broker dependency](#sqlclient-broker-dependency) | Low |
| [Application Name is now injected into the connection string](#sqlserver-application-name) | Low |
| [SQL Server json data type used by default on Azure SQL and compatibility level 170](#sqlserver-json-data-type) | Low |
| [Parameterized collections now use multiple parameters by default](#parameterized-collections) | Low |
Expand Down Expand Up @@ -83,6 +84,28 @@ You'll need to choose one of the frameworks (e.g., `net9.0`) when running the EF

## Low-impact changes

<a name="sqlclient-broker-dependency"></a>

### SQL Server: Microsoft.Data.SqlClient adds a broker dependency

#### Old behavior

Earlier versions of Microsoft.Data.SqlClient did not depend on Microsoft.Identity.Client.Broker.

#### New behavior

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.

#### Why

The additional dependency is introduced by Microsoft.Data.SqlClient, rather than EF Core itself.

#### Mitigations

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.

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).

<a name="sqlserver-application-name"></a>

### Application Name is now injected into the connection string
Expand Down
Loading