-
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
Adding .WithPartitionKey() #20300
Adding .WithPartitionKey() #20300
Conversation
src/EFCore.Cosmos/Query/Internal/CosmosShapedQueryCompilingExpressionVisitor.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Cosmos/Infrastructure/CosmosDbContextOptionsBuilder.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Cosmos/Query/CosmosQueryTranslationPreprocessorDependencies.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Cosmos/Query/Internal/CosmosQueryMetadataExtractingExpressionVisitor.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Cosmos/Query/Internal/CosmosQueryTranslationPreprocessorFactory.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Cosmos/Query/Internal/CosmosShapedQueryCompilingExpressionVisitor.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Cosmos/Query/Internal/CosmosShapedQueryCompilingExpressionVisitor.cs
Outdated
Show resolved
Hide resolved
Also add a test to |
I've squashed the commits. Working on passing the end-to-end cosmos test... |
src/EFCore.Cosmos/Query/Internal/CosmosQueryTranslationPreprocessorFactory.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Cosmos/Query/Internal/CosmosShapedQueryCompilingExpressionVisitor.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Cosmos/Extensions/CosmosServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
Test added and all end-to-end cosmos tests passed. |
src/EFCore.Cosmos/Query/Internal/CosmosQueryMetadataExtractingExpressionVisitor.cs
Show resolved
Hide resolved
Not sure what to make of these check fails?
|
Since there is new public API and class, just few missing virtual keyword and [NotNull] annotations. Also where you put [NotNull] on parameter, make sure to also call Check.NotNull for parameter. |
src/EFCore.Cosmos/Query/Internal/CosmosQueryCompilationContext.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Cosmos/Query/Internal/CosmosQueryTranslationPreprocessor.cs
Outdated
Show resolved
Hide resolved
Adding WithPartitionKey
@1iveowl Thanks for your contribution! |
Adding
.WithPartitionKey()
IQueryable
extension method.Needed when using resource tokens for secure authentication when permissions are grated based on partition keys. #20221