-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop including the discriminator in the JSON id by default
Fixes #34179 There are also new APIs on the entity type and model builders to facilitate optional behaviors, including reverting to the pre-9 behavior: - Entity<Blog>().IncludeDiscriminatorInJsonId(); - Entity<Blog>().IncludeRootDiscriminatorInJsonId(); - Entity<Blog>().AlwaysCreateShadowIdProperty(); Note that this change requires regeneration of the Northwind database.
- Loading branch information
1 parent
d94cc5a
commit 1e24e1c
Showing
65 changed files
with
2,155 additions
and
2,644 deletions.
There are no files selected for viewing
319 changes: 319 additions & 0 deletions
319
src/EFCore.Cosmos/Extensions/CosmosEntityTypeBuilderExtensions.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.