-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[5.0-rc2] Undo GetColumnName behavior change #22672
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
f7805c8
to
cd0c86d
Compare
I obsoleted these methods as using them for the new complex mappings will not yield the expected results. |
cd0c86d
to
620c60f
Compare
Hello @AndriySvyryd! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
How would I receive the StoreObjectIdentifier for the new GetColumnName overload? Here is my example usage of GetColumnName, which now raises an Obsolete warning.
|
var table = StoreObjectIdentifier.Create(entityType, StoreObjectType.Table); We will publish documentation for this soon. |
returns StoreObjectIdentifier? (nullable) Which makes it hard to use in for example
which requires StoreObjectIdentifier (not nullable) |
@mikes-gh That's by design. An entity type might not be mapped to any table. And |
@AndriySvyryd Thanks |
@mikes-gh Agree, we'll deprecate |
@AndriySvyryd
|
Fixes #22608
Description
In 5.0 complex mapping support was introduced allowing to map an entity type to multiple tables, views, functions and queries. This subtly changed the meaning of
GetColumnName
return type from a table column name to a base column name to be used for any mapping.Customer Impact
GetColumnName
is used commonly for batch column name processing and the value returned for properties in owned types is different now compared to 3.1How found
Customer reported on RC1.
Test coverage
This PR adds a test for the affected scenario.
Regression?
Yes.
Risk
Low. The modified method isn't used internally after this change, so there is no danger of other features being affected.