Skip to content

Commit d9e7774

Browse files
Merge pull request #217014 from seesharprun/cosmos-fix-dotnet-quickstart-nosql
Cosmos DB | Bug fix in NoSQL + .NET quickstart
2 parents f1814f9 + e9f6bf6 commit d9e7774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cosmos-db/nosql/quickstart-dotnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ The easiest way to create a new item in a container is to first build a C# [clas
150150

151151
:::code language="csharp" source="~/azure-cosmos-dotnet-v3/001-quickstart/Product.cs" id="entity" highlight="3-4":::
152152

153-
Create an item in the container by calling [``Container.UpsertItemAsync``](/dotnet/api/microsoft.azure.cosmos.container.upsertitemasync). In this example, we chose to *upsert* instead of *create* a new item in case you run this sample code more than once.
153+
Create an item in the container by calling [``Container.CreateItemAsync``](/dotnet/api/microsoft.azure.cosmos.container.createitemasync).
154154

155155
:::code language="csharp" source="~/azure-cosmos-dotnet-v3/001-quickstart/Program.cs" id="new_item" highlight="3-4,12":::
156156

0 commit comments

Comments
 (0)