简体   繁体   中英

Cosmos DB Table API with .NET Core

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

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.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM