Skip to content
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

[Internal] Direct Package Upgrade: Refactors Code to Bump Up Cosmos.Direct Package to 3.31.2 #3918

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ClientOfficialVersion>3.34.0</ClientOfficialVersion>
<ClientPreviewVersion>3.34.0</ClientPreviewVersion>
<ClientPreviewSuffixVersion>preview</ClientPreviewSuffixVersion>
<DirectVersion>3.31.1</DirectVersion>
<DirectVersion>3.31.2</DirectVersion>
kundadebdatta marked this conversation as resolved.
Show resolved Hide resolved
<EncryptionOfficialVersion>2.0.2</EncryptionOfficialVersion>
<EncryptionPreviewVersion>2.0.2</EncryptionPreviewVersion>
<EncryptionPreviewSuffixVersion>preview</EncryptionPreviewSuffixVersion>
Expand Down
5 changes: 5 additions & 0 deletions Microsoft.Azure.Cosmos/src/Regions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,5 +359,10 @@ public static class Regions
/// Name of the Azure Italy North region in the Azure Cosmos DB service.
/// </summary>
public const string ItalyNorth = "Italy North";

/// <summary>
/// Name of the Azure Israel Central region in the Azure Cosmos DB service.
/// </summary>
public const string IsraelCentral = "Israel Central";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<Results>
kundadebdatta marked this conversation as resolved.
Show resolved Hide resolved
<Result>
<Input>
<Description><![CDATA[Filter w/ DataObject initializer with constant value]]></Description>
<Expression><![CDATA[query.Where(doc => (doc == new DataObject() {NumericField = 12, StringField = "12"}))]]></Expression>
</Input>
<Output>
<SqlQuery><![CDATA[
SELECT VALUE root
FROM root
WHERE (root = {"number": 12, "String_value": "12", "id": null, "Pk": null})]]></SqlQuery>
</Output>
</Result>
<Result>
<Input>
<Description><![CDATA[Select w/ DataObject initializer]]></Description>
<Expression><![CDATA[query.Select(doc => new DataObject() {NumericField = 12, StringField = "12"})]]></Expression>
</Input>
<Output>
<SqlQuery><![CDATA[
SELECT VALUE {"number": 12, "String_value": "12", "id": null, "Pk": null}
FROM root]]></SqlQuery>
</Output>
</Result>
<Result>
<Input>
<Description><![CDATA[Deeper than top level reference]]></Description>
<Expression><![CDATA[query.Select(doc => IIF((doc.NumericField > 12), new DataObject() {NumericField = 12, StringField = "12"}, new DataObject() {NumericField = 12, StringField = "12"}))]]></Expression>
</Input>
<Output>
<SqlQuery><![CDATA[
SELECT VALUE ((root["NumericField"] > 12) ? {"number": 12, "String_value": "12", "id": null, "Pk": null} : {"number": 12, "String_value": "12", "id": null, "Pk": null})
FROM root]]></SqlQuery>
</Output>
</Result>
<Result>
<Input>
<Description><![CDATA[Filter w/ DataObject initializer with member initialization]]></Description>
<Expression><![CDATA[query.Where(doc => (doc == new DataObject() {NumericField = doc.NumericField, StringField = doc.StringField})).Select(b => "A")]]></Expression>
</Input>
<Output>
<SqlQuery><![CDATA[
SELECT VALUE "A"
FROM root
WHERE (root = {"NumericField": root["NumericField"], "StringField": root["StringField"]})]]></SqlQuery>
</Output>
</Result>
</Results>
Original file line number Diff line number Diff line change
Expand Up @@ -6680,6 +6680,11 @@
"Attributes": [],
"MethodInfo": "System.String GermanyWestCentral;IsInitOnly:False;IsStatic:True;"
},
"System.String IsraelCentral": {
"Type": "Field",
"Attributes": [],
"MethodInfo": "System.String IsraelCentral;IsInitOnly:False;IsStatic:True;"
},
"System.String ItalyNorth": {
"Type": "Field",
"Attributes": [],
Expand Down