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
Copy file name to clipboardExpand all lines: articles/cosmos-db/create-table-dotnet.md
+1-11Lines changed: 1 addition & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,6 @@ If you don’t already have Visual Studio 2017 installed, you can download and u
29
29
30
30
## Create a database account
31
31
32
-
> [!IMPORTANT]
33
-
> You must create a new Table API account to work with the generally available Table API SDKs. Table API accounts created during preview are not supported by the generally available SDKs.
> The .Net standard sample described in this doc works with both Azure Table Storage and Azure Cosmos DB Table API. If you are interested in running the sample that works with .Net Framework 4.5, see the [storage-table-dotnet-getting-started](https://github.com/Azure-Samples/storage-table-dotnet-getting-started) sample.
64
+
> The .Net standard sample described in this doc works with both Azure Cosmos DB Table API and Azure Table Storage. If you are interested in running the sample that works with .Net Framework 4.5, see the [storage-table-dotnet-getting-started](https://github.com/Azure-Samples/storage-table-dotnet-getting-started) sample.
69
65
70
66
71
67
## Open the sample application in Visual Studio
@@ -95,10 +91,6 @@ Now go back to the Azure portal to get your connection string information and co
95
91
```
96
92
If you are using the [.Net Framework](https://github.com/Azure-Samples/storage-table-dotnet-getting-started) sample, you should update the connection string that’s located in the **App.config** file.
97
93
98
-
> [!IMPORTANT]
99
-
> If your Endpoint uses documents.azure.com, that means you have a preview account, and you must create a [new Table API account](#create-a-database-account) to work with the generally available Table API SDK.
100
-
>
101
-
102
94
4. Press CTRL+S to save the **Settings.json** file.
103
95
104
96
You've now updated your app with all the info it needs to communicate with Azure Cosmos DB.
@@ -126,8 +118,6 @@ You've now updated your app with all the info it needs to communicate with Azure
If you get an error about dependencies, see [Troubleshooting](table-sdk-dotnet.md#troubleshooting).
130
-
131
121
When you hit the first breakpoint, go back to Data Explorer in the Azure portal. Click the **Refresh** button, expand the demo* table, and click **Entities**. The **Entities** tab on the right shows the new entity that was added for Walter Harp. Note that the phone number for the new entity is 425-555-0101.
You can use Azure Table storage or the Azure Cosmos DB Table API to store structured NoSQL data in the cloud, providing a key/attribute store with a schema less design. Because Table storage and the Azure Cosmos DB Table API are schema less, it's easy to adapt your data as the needs of your application evolve. You can use Table storage or the Azure Cosmos DB Table API to store flexible datasets such as user data for web applications, address books, device information, or other types of metadata your service requires.
18
+
You can use the Azure Cosmos DB Table API or Azure Table storage to store structured NoSQL data in the cloud, providing a key/attribute store with a schema less design. Because Azure Cosmos DB Table API and Table storage are schema less, it's easy to adapt your data as the needs of your application evolve. You can use Azure Cosmos DB Table API or the Table storage to store flexible datasets such as user data for web applications, address books, device information, or other types of metadata your service requires.
19
19
20
-
This tutorial describes a sample that shows you how to use the [Microsoft Azure Cosmos DB Table Library for .NET](https://www.nuget.org/packages/Microsoft.Azure.Cosmos.Table) with Azure Table storage and Azure Cosmo DB Table API scenarios. You must use the connection specific to the Azure service. These scenarios are explored using C# examples that illustrate how to create tables, insert/ update data, query data and delete the tables.
20
+
This tutorial describes a sample that shows you how to use the [Microsoft Azure Cosmos DB Table Library for .NET](https://www.nuget.org/packages/Microsoft.Azure.Cosmos.Table) with Azure Cosmo DB Table API and Azure Table storage scenarios. You must use the connection specific to the Azure service. These scenarios are explored using C# examples that illustrate how to create tables, insert/ update data, query data and delete the tables.
21
21
22
22
Prerequisites
23
23
You need the following to run this tutorial:
@@ -218,7 +218,8 @@ public static async Task<CustomerEntity> InsertOrMergeEntityAsync(CloudTable tab
// Get the request units consumed by the current operation. RequestCharge of a TableResult is only applied to Azure CosmoS DB
222
223
if (result.RequestCharge.HasValue)
223
224
{
224
225
Console.WriteLine("Request Charge of InsertOrMerge Operation: "+result.RequestCharge);
@@ -235,9 +236,9 @@ public static async Task<CustomerEntity> InsertOrMergeEntityAsync(CloudTable tab
235
236
}
236
237
```
237
238
238
-
### Retrieve an entity from a partition
239
+
### Get an entity from a partition
239
240
240
-
To query a table for all entities in a partition by using the Retrieve method under the [TableOperation](https://docs.microsoft.com/dotnet/api/microsoft.windowsazure.storage.table.tableoperation?redirectedfrom=MSDN&view=azure-dotnet) class. The following code example gets the partition key row key, email and phone number of a customer entity. This example also prints out the request units consumed to query for the entity. To query for an entity, append the following code to **SamplesUtils.cs** file:
241
+
You can get entity from a partition by using the Retrieve method under the [TableOperation](https://docs.microsoft.com/dotnet/api/microsoft.windowsazure.storage.table.tableoperation?redirectedfrom=MSDN&view=azure-dotnet) class. The following code example gets the partition key row key, email and phone number of a customer entity. This example also prints out the request units consumed to query for the entity. To query for an entity, append the following code to **SamplesUtils.cs** file:
0 commit comments