3
votes

I can see documentation on how to use Cosmos DB Table API with .NET here https://docs.microsoft.com/en-us/azure/cosmos-db/tutorial-develop-table-dotnet.

But I can't make this work with .NET Core project. Is there a way to make a working call to Cosmos DB Table API for .NET Core?

Thanks

3
Please edit your question and include: 1) Which nuget package you're using? 2) What's the error you're getting? - Gaurav Mantri
Based on my test, we also could use WindowsAzure.Storage (9.1.1) to operate Cosmos DB Table API, it could be used for .Net Core. - Tom Sun - MSFT

3 Answers

4
votes

There's currently no .NET Core version of the Cosmos DB Table API, but they are working on it. See the following GitHub issue: https://github.com/Azure/azure-cosmosdb-dotnet/issues/344.

From one of the comments there:

We are fully committed to delivering a .Net Standard SDK for Table API. We are tracking for delivery by October or before.

1
votes

You need to add the following nuget package to the dotnet core project

dotnet add package Microsoft.Azure.DocumentDB.Core

I have written a blog on Wear out the features of Azure CosmosDB with AspNetCore application

EDIT

Click Install to install the Microsoft.Azure.CosmosDB.Table library. This installs the Azure Cosmos DB Table API package and all dependencies.

0
votes

If you're looking to develop .NET Standard applications for Azure Cosmos DB Table API, you should install the Microsoft.Azure.Cosmos.Table package

You can check out the NuGet specs here:https://www.nuget.org/packages/Microsoft.Azure.Cosmos.Table