You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In EFC 3.1.8 I renamed the columns of owned entities with a single "Value" property to not include the "Value" string in the generated column name. In my application domain I have various owned entities with just a single property.
For example the database column "WorksAt_Value" would be turned into "WorksAt".
For this I created the ConfigureOwnedValueProperties method, see below, which uses IMutableProperty.GetColumnName and IMutableProperty.SetColumnName.
In EFC 3.1.8 this works fine, but in EFC 5.0-rc1 and 6.0.0-alpha.1.20468.4 the methode GetColumnName doesn't return the full column name "WorksAt_Value" anymore, but just "Value".
Debug output of the following program in EFC 3.1.8:
EfcBug.OrganisationKey: Id
EfcBug.OrganisationKey: WorksAt_Value
Debug output of the following program in EFC 5.0-rc1:
EfcBug.OrganisationKey: PersonId
EfcBug.OrganisationKey: Value
Id changed to PersonId.
WorksAt_Value changed to Value.
Is this expected bevhaviour? Should we as customers not use these methods?
But then I couldn't find anything about an expected breaking change in that area?
In EFC 3.1.8 I renamed the columns of owned entities with a single "Value" property to not include the "Value" string in the generated column name. In my application domain I have various owned entities with just a single property.
For example the database column "WorksAt_Value" would be turned into "WorksAt".
For this I created the ConfigureOwnedValueProperties method, see below, which uses IMutableProperty.GetColumnName and IMutableProperty.SetColumnName.
In EFC 3.1.8 this works fine, but in EFC 5.0-rc1 and 6.0.0-alpha.1.20468.4 the methode GetColumnName doesn't return the full column name "WorksAt_Value" anymore, but just "Value".
Debug output of the following program in EFC 3.1.8:
Debug output of the following program in EFC 5.0-rc1:
Id changed to PersonId.
WorksAt_Value changed to Value.
Is this expected bevhaviour? Should we as customers not use these methods?
But then I couldn't find anything about an expected breaking change in that area?
Thanks :-)
Steps to reproduce:
Further technical details
EF Core version: 5.0.0-rc.1.20451.13 (doesn't work), 6.0.0-alpha.1.20468.4 (doesn't work), 3.1.8 (works fine!)
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET Core 3.1.8
Operating system: Windows 10 2004
SQL Server 15.0.4063.15
IDE: Visual Studio 2019 16.7.3
The text was updated successfully, but these errors were encountered: