-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cosmos db Hierarchical Partitions in EF Core #28186
Comments
I don't think those functions are suported in Entity Framework. |
This feature is currently in preview in CosmosDb Sql API. |
@ajcvickers Do we know when it's going to be released ? |
This issue is in the Backlog milestone. This means that it is not going to happen for the 7.0 release. We will re-assess the backlog following the 7.0 release and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources. |
Hi. Where is this in the backlog prioritisation? I assume it won't make it for the 8.0 release? |
@umairb-pedal This issue has zero votes, which, all other things being equal, buts it way down the priority list. Make sure to vote (👍) if its something you need. |
Hello, is there any workaround to have EF working with the container with hierarchical partition keys? Is there plan for tentative release date for this support? |
This issue is in the Backlog milestone. This means that it is not planned for the next release (EF Core 8.0). We will re-assess the backlog following the this release and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources. Make sure to vote (👍) for this issue if it is important to you. |
I can see this is labeled to be considered for current release, do we have any idea of when that will be released? |
@vitorlinares There is a reasonable chance this will end up in EF9, which ships November 2024. |
Thanks @ajcvickers, |
Kind of crazy this feature is missing. Just inherited a project using EF Core and cosmos, this prevents you leveraging best practices and if nothing else, should really be added to the docs as an absent feature Looking forward to its release! |
Fixes #28186 Fixes #28265 Fixes #33535 Also: - Allow non-string partition key values - Warn if no partition key has been defined - Use a value converter if needed for values passed to WithPartitionKey (This is probably a bug, but should be docced as a breaking change anyway.) Updated based on review feedback
* Support hierarchical partition keys in Cosmos provider Fixes #28186 Fixes #28265 Fixes #33535 Also: - Allow non-string partition key values - Warn if no partition key has been defined - Use a value converter if needed for values passed to WithPartitionKey (This is probably a bug, but should be docced as a breaking change anyway.) Updated based on review feedback * Added test for type that cannot be a partition key
Hi I have a question, when it comes to working with hierarchical partition keys in Entity Framework. The hierarchical partitions are defined in the cosmos database, but I am struggling to work with them in EF when I have to specify HasPartitionKey method. I get an error that my partition specified does not match the partition defined in the document. Please assist on how I can work with hierarchical partitions in EF. See code below:
Include stack traces
EF Core version: Microsoft.EntityFrameworkCore (6.0.5)
Database provider: Microsoft.EntityFrameworkCore.Cosmos (6.0.5)
Target framework: NET 6.0
IDE: Visual Studio 2022
The text was updated successfully, but these errors were encountered: