Document breaking changes for complex types in EF Core 10.0#5113
Document breaking changes for complex types in EF Core 10.0#5113AndriySvyryd merged 8 commits intolivefrom
Conversation
…els with value converters Co-authored-by: AndriySvyryd <[email protected]>
entity-framework/core/performance/advanced-performance-topics.md
Outdated
Show resolved
Hide resolved
entity-framework/core/what-is-new/ef-core-10.0/breaking-changes.md
Outdated
Show resolved
Hide resolved
entity-framework/core/what-is-new/ef-core-10.0/breaking-changes.md
Outdated
Show resolved
Hide resolved
samples/core/Miscellaneous/CompiledModels/ValueConverterSample.cs
Outdated
Show resolved
Hide resolved
…sections Co-authored-by: AndriySvyryd <[email protected]>
entity-framework/core/performance/advanced-performance-topics.md
Outdated
Show resolved
Hide resolved
entity-framework/core/what-is-new/ef-core-10.0/breaking-changes.md
Outdated
Show resolved
Hide resolved
entity-framework/core/what-is-new/ef-core-10.0/breaking-changes.md
Outdated
Show resolved
Hide resolved
entity-framework/core/what-is-new/ef-core-10.0/breaking-changes.md
Outdated
Show resolved
Hide resolved
entity-framework/core/what-is-new/ef-core-10.0/breaking-changes.md
Outdated
Show resolved
Hide resolved
entity-framework/core/what-is-new/ef-core-10.0/breaking-changes.md
Outdated
Show resolved
Hide resolved
entity-framework/core/what-is-new/ef-core-10.0/breaking-changes.md
Outdated
Show resolved
Hide resolved
…, reorganize sections Co-authored-by: AndriySvyryd <[email protected]>
entity-framework/core/what-is-new/ef-core-10.0/breaking-changes.md
Outdated
Show resolved
Hide resolved
Co-authored-by: AndriySvyryd <[email protected]>
|
@copilot Update the description with a short summary and reference the fixed issues dotnet/efcore#35033 and #4970 |
Updated the PR description with a short summary of the breaking changes documented and added references to the fixed issues #35033 and #4970. |
| { | ||
| public static readonly BooleanToCharConverter Default = new(); | ||
|
|
||
| public BooleanToCharConverter() |
There was a problem hiding this comment.
nit: maybe modernize the code sample a bit, with a primary constructor, expression-bodied methods below?
There was a problem hiding this comment.
@copilot modernize the code sample a bit, with a primary constructor and expression-bodied methods
There was a problem hiding this comment.
Modernized the code sample to use a primary constructor and expression-bodied methods for the conversion methods. (1d1a23e)
| |:--------------------------------------------------------------------------------------------------------------- | -----------| | ||
| | [SQL Server json data type used by default on Azure SQL and compatibility level 170](#sqlserver-json-data-type) | Low | | ||
| | [ExecuteUpdateAsync now accepts a regular, non-expression lambda](#ExecuteUpdateAsync-lambda) | Low | | ||
| | [Compiled models now throw exception for value converters with private methods](#compiled-model-private-methods) | Low | |
entity-framework/core/what-is-new/ef-core-10.0/breaking-changes.md
Outdated
Show resolved
Hide resolved
|
|
||
| #### Old behavior | ||
|
|
||
| Previously, when mapping complex types to table columns, if multiple properties in different complex types had the same column name, they would silently share the same column. |
There was a problem hiding this comment.
How does this relate to the breaking change just below - are they dups? In other words, if the full path is now used (the change below), how is it possible to for multiple properties in different complex types to have the same column name (i.e. when would appending the number be necessary)?
There was a problem hiding this comment.
It's less likely, but still possible if the user explicitly set the column name on one that matches the default column name of the other.
Co-authored-by: roji <[email protected]>
|
@AndriySvyryd am slightly confused by certain things here (see comments) but I'm sure it's my misunderstanding etc. |
…methods Co-authored-by: AndriySvyryd <[email protected]>
Co-authored-by: AndriySvyryd <[email protected]>
This PR documents breaking changes for EF Core 10.0 related to complex types.
Breaking Changes Documented
Complex Types (#4970)
ProcessDiscriminatorPropertySetmethod now takesIConventionTypeBaseBuilderinstead ofIConventionEntityTypeBuilderChanges Made
Fixes #4970
Fixes #4947
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.