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
This quickstart shows how to get started with the Azure Cosmos DB Table API from a .NET application. The Cosmos DB Table API is a schemaless data store allowing applications to store structured NoSQL data in the cloud. You'll learn how to create tables, rows, and perform basic tasks within your Cosmos DB resource using the [Azure.Data.Tables Package (NuGet)](https://www.nuget.org/packages/Azure.Data.Tables/).
@@ -24,7 +25,7 @@ This quickstart shows how to get started with the Azure Cosmos DB Table API from
24
25
## Prerequisites
25
26
26
27
* An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free).
*[Azure Command-Line Interface (CLI)](/cli/azure/) or [Azure PowerShell](/powershell/azure/)
29
30
30
31
### Prerequisite check
@@ -34,7 +35,7 @@ This quickstart shows how to get started with the Azure Cosmos DB Table API from
34
35
35
36
## Setting up
36
37
37
-
This section walks you through how to create an Azure Cosmos account and set up a project that uses the Table API NuGet packages.
38
+
This section walks you through how to create an Azure Cosmos account and set up a project that uses the Table API NuGet packages.
38
39
39
40
### Create an Azure Cosmos DB account
40
41
@@ -72,10 +73,10 @@ This quickstart will create a single Azure Cosmos DB account using the Table API
72
73
73
74
### Create a new .NET app
74
75
75
-
Create a new .NET application in an empty folder using your preferred terminal. Use the [``dotnet new console``](/dotnet/core/tools/dotnet-new) to create a new console app.
76
+
Create a new .NET application in an empty folder using your preferred terminal. Use the [``dotnet new console``](/dotnet/core/tools/dotnet-new) to create a new console app.
76
77
77
78
```console
78
-
dotnet new console -output <app-name>
79
+
dotnet new console --output <app-name>
79
80
```
80
81
81
82
### Install the NuGet package
@@ -102,9 +103,9 @@ The sample code described in this article creates a table named ``adventureworks
102
103
103
104
You'll use the following Table API classes to interact with these resources:
104
105
105
-
-[``TableServiceClient``](/dotnet/api/azure.data.tables.tableserviceclient) - This class provides methods to perform service level operations with Azure Cosmos DB Table API.
106
-
-[``TableClient``](/dotnet/api/azure.data.tables.tableclient) - This class allows you to interact with tables hosted in the Azure Cosmos DB table API.
107
-
-[``TableEntity``](/dotnet/api/azure.data.tables.tableentity) - This class is a reference to a row in a table that allows you to manage properties and column data.
106
+
*[``TableServiceClient``](/dotnet/api/azure.data.tables.tableserviceclient) - This class provides methods to perform service level operations with Azure Cosmos DB Table API.
107
+
*[``TableClient``](/dotnet/api/azure.data.tables.tableclient) - This class allows you to interact with tables hosted in the Azure Cosmos DB table API.
108
+
*[``TableEntity``](/dotnet/api/azure.data.tables.tableentity) - This class is a reference to a row in a table that allows you to manage properties and column data.
108
109
109
110
### Authenticate the client
110
111
@@ -128,7 +129,7 @@ The easiest way to create a new item in a table is to create a class that implem
Create an item in the collection using the `Product` class by calling [``TableClient.AddEntityAsync<T>``](/dotnet/api/azure.data.tables.tableclient.addentityasync).
132
+
Create an item in the collection using the `Product` class by calling [``TableClient.AddEntityAsync<T>``](/dotnet/api/azure.data.tables.tableclient.addentityasync).
@@ -140,7 +141,7 @@ You can retrieve a specific item from a table using the [``TableEntity.GetEntity
140
141
141
142
### Query items
142
143
143
-
After you insert an item, you can also run a query to get all items that match a specific filter by using the `TableClient.Query<T>` method. This example filters products by category using [Linq](/dotnet/standard/linq) syntax, which is a benefit of using strongly typed `ITableEntity` models like the `Product` class.
144
+
After you insert an item, you can also run a query to get all items that match a specific filter by using the `TableClient.Query<T>` method. This example filters products by category using [Linq](/dotnet/standard/linq) syntax, which is a benefit of using typed `ITableEntity` models like the `Product` class.
144
145
145
146
> [!NOTE]
146
147
> You can also query items using [OData](/rest/api/storageservices/querying-tables-and-entities) syntax. You can see an example of this approach in the [Query Data](./tutorial-query-table.md) tutorial.
Copy file name to clipboardExpand all lines: articles/cosmos-db/table/includes/quickstart-dotnet/azure-cli-get-connection-string.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ author: alexwolfmsft
3
3
ms.service: cosmos-db
4
4
ms.subservice: cosmosdb-table
5
5
ms.topic: include
6
-
ms.date: 07/08/2022
6
+
ms.date: 08/22/2022
7
7
ms.author: alexwolf
8
8
---
9
9
1. Find the Table API **connection string** from the list of connection strings for the account with the [``az cosmosdb list-connection-strings``](/cli/azure/cosmosdb#az-cosmosdb-list-connection-strings) command.
@@ -14,4 +14,4 @@ ms.author: alexwolf
14
14
--name $accountName
15
15
```
16
16
17
-
1. Record the *PRIMARY KEY* values. You'll use these credentials later.
17
+
1. Record the *Primary Table Connection String* values. You'll use these credentials later.
0 commit comments