FluentAPI configuration PrimitiveCollection on OwnedNavigationBuilder returns PropertyBuilder instead of PrimitiveCollectionBuilder #32601
Labels
area-model-building
breaking-change
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
Servicing-approved
type-bug
Milestone
When configuring an owned type, if that owned type has a primitive collection, configuring it using the new PrimitiveCollection on the builder does not alow me to specify .ElementType() because a PropertyBuilder is returned instead of a PrimitiveCollectionBuilder. I need this to convert a list of enums to strings (instead of having the enums as numbers in the database).
Include your code
Simplified example.
Entity definition:
Configuration:
Include provider and version information
EF Core version: 8.0.0
Database provider: Npgsql.EntityFrameworkCore.PostgreSQL
Target framework: .NET 8.0
Operating system: Windows 11
IDE: VS Code
Update 2023-12-20: Included information that the list is an list of enum members instead of ints.
The text was updated successfully, but these errors were encountered: