Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .NET Standard 2.1 support to breaking changes #2985

Merged
merged 1 commit into from
Jan 6, 2021
Merged
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
23 changes: 23 additions & 0 deletions entity-framework/core/what-is-new/ef-core-5.0/breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The following API and behavior changes have the potential to break existing appl

| **Breaking change** | **Impact** |
|:--------------------------------------------------------------------------------------------------------------------------------------|------------|
| [EF Core 5.0 does not support .NET Framework](#netstandard21) | Medium |
| [IProperty.GetColumnName() is now obsolete](#getcolumnname-obsolete) | Medium |
| [Precision and scale are required for decimals](#decimals) | Medium |
| [Required on the navigation from principal to dependent has different semantics](#required-dependent) | Medium |
Expand All @@ -38,6 +39,28 @@ The following API and behavior changes have the potential to break existing appl

## Medium-impact changes

<a name="netstandard21"></a>

### EF Core 5.0 does not support .NET Framework

[Tracking Issue #15498](https://github.com/dotnet/efcore/issues/15498)

#### Old behavior

EF Core 3.1 targets .NET Standard 2.0, which is supported by .NET Framework.

#### New behavior

EF Core 5.0 targets .NET Standard 2.1, which is not supported by .NET Framework. This means EF Core 5.0 cannot be used with .NET Framework applications.

#### Why

This is part of the wider movement across .NET teams aimed at unification to a single .NET target framework. For more information see [the future of .NET Standard](https://devblogs.microsoft.com/dotnet/the-future-of-net-standard/).

#### Mitigations

.NET Framework applications can continue to use EF Core 3.1, which is a [long-term support (LTS) release](https://dotnet.microsoft.com/platform/support/policy/dotnet-core). Alternately, applications can be updated to use .NET Core 2.1, .NET Core 3.1, or .NET 5, all of which support .NET Standard 2.1.

<a name="getcolumnname-obsolete"></a>

### IProperty.GetColumnName() is now obsolete
Expand Down