You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WHERE ((c["SessionId"] >0) AND CONTAINS(c["Username"], "a"))
@@ -105,7 +105,7 @@ var session = await context.Sessions.SingleAsync(
105
105
In this query, a value for the `Id` property is provided (which is mapped to the Azure Cosmos DB `id` property), as well as values for all the partition key properties. Furthermore, there are no additional components to the query. When all these conditions are met, EF is able to execute the query as a point read:
Executing SQL query for container 'UserSessionContext' in partition '["Microsoft","99a410d7-e467-4cc5-92de-148f3fc53f4c",7.0]' [Parameters=[]]
136
+
Executing SQL query for container 'UserSessionContext' in partition '["Microsoft","00aa00aa-bb11-cc22-dd33-44ee44ee44ee",7.0]' [Parameters=[]]
137
137
SELECT c
138
138
FROM root c
139
139
WHERE ((c["Discriminator"] = "UserSession") AND CONTAINS(c["Username"], "a"))
140
140
```
141
141
142
-
Notice that the partition key comparisons have been removed from the `WHERE` clause, and are instead used as the partition key for efficient execution: `["Microsoft","99a410d7-e467-4cc5-92de-148f3fc53f4c",7.0]`.
142
+
Notice that the partition key comparisons have been removed from the `WHERE` clause, and are instead used as the partition key for efficient execution: `["Microsoft","00aa00aa-bb11-cc22-dd33-44ee44ee44ee",7.0]`.
143
143
144
144
For more information, see the documentation on [querying with partition keys](xref:core/providers/cosmos/querying#partition-keys).
0 commit comments