Skip to content

Cosmos: Detect partition key filters in more queries #20350

@AndriySvyryd

Description

@AndriySvyryd

Currently one needs to write the query like this to use a partition key:

var blogs = context.Blogs.WithPartitionKey("1337").ToList();

Instead we could automatically detect the partition key filter if used:

var blogs = context.Blogs.Where(b => b.PartitionKey == "1337").ToList();

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions