[Cosmos] How to set a partition key in a embedded entity? #25548
Labels
area-cosmos
customer-reported
punted-for-9.0
Originally planned for the EF Core 9.0 (EF9) release, but moved out due to resource constraints.
type-enhancement
Milestone
I have a Post entity that has an Author as a embedded entity. I would like the Author Id to be my partition key. But when I try to do this through fluent api I get the error below:
Im try this:
and i get this:
I think the right way would be:
but its not possilble.
How can I solve this problem?
EF Core version:
Database provider: (e.g. Microsoft.EntityFrameworkCore.Cosmos 5.0.9)
Target framework: (e.g. .NET 5.0)
Operating system:
IDE: (e.g. Visual Studio 2019 16.10.0)
The text was updated successfully, but these errors were encountered: