3

I can see documentation on how to use Cosmos DB Table API with .NET here https://learn.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

2
  • 2
    Please edit your question and include: 1) Which nuget package you're using? 2) What's the error you're getting? Commented Apr 9, 2018 at 5:28
  • 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. Commented Apr 9, 2018 at 6:34

3 Answers 3

4

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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.

4 Comments

Hi, thanks for the reply. For the Cosmos DB SQL API (Document) it works totally fine and Microsoft also has a documentation for that learn.microsoft.com/en-us/azure/cosmos-db/…. I am asking for the Cosmos DB Table API
AFAIK, there isn't a .net core API for the table storage features of cosmos. You can use the DocumentDb.Core lib, but nothing that will allow you to work with tables in the same way that you can with table storage. How rubbish is that?!
Is there any Cosmos DB support for .NET Standard?
0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.