Skip to content

Commit 2056c42

Browse files
authored
Merge pull request #113977 from msallin/patch-1
fix code formatting for better readability
2 parents 9e7da3d + 8790f2e commit 2056c42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cosmos-db/nosql/migrate-containers-partitioned-to-nonpartitioned.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class DeviceInformationItem
6767
public string DeviceId { get; set; }
6868

6969
[JsonProperty(PropertyName = "_partitionKey", NullValueHandling = NullValueHandling.Ignore)]
70-
public string PartitionKey {get {return this.DeviceId; set; }
70+
public string PartitionKey { get {return this.DeviceId; set; }
7171
}
7272

7373
CosmosContainer migratedContainer = database.Containers["testContainer"];
@@ -86,7 +86,7 @@ ItemResponse<DeviceInformationItem > response =
8686
// Read back the document providing the same partition key
8787
ItemResponse<DeviceInformationItem> readResponse =
8888
await migratedContainer.ReadItemAsync<DeviceInformationItem>(
89-
partitionKey:deviceItem.PartitionKey,
89+
partitionKey: deviceItem.PartitionKey,
9090
id: device.Id
9191
);
9292

0 commit comments

Comments
 (0)