In this video, discover how existing code for Azure storage tables can be re-used when connecting to Cosmos DB table APIs without modification.
- [Instructor] For a brief introduction…to the CosmosDB table API,…we will copy and paste some of our existing code…that works against Azure Storage tables…and reuse it as is,…against the CosmosDB table API.…And so, returning to our Visual Studio project,…right click, add class,…Test_Tables_50 for CosmosDB.…Will add the attributes for our Unit Test.…
Ctrl+. to add the using clause.…Make the class public,…add a Test Method,…being async method,…returning Task.…Ctrl+. to add the using for System.Threading.Tasks…and this is Test_51_CosmosDB.…Now let's return to the Azure portal…and copy and paste the connection string.…Here I have my learn azure CosmosDB resource open.…
I will go to Quick Start…and copy and paste from here.…Note I'm not copy and pasting all the lines.…Will use the existing using statements from…the Azure Storage tables part of the library.…So I'll paste from here.…Note for CloudStorageAccount I'll hit Ctrl+.…Microsoft.WindowsAzure.Storage, good enough.…And for CloudTableClient just make it var for now.…
Released
12/10/2018- Creating a Blob storage account
- Stored access policies for granting privileges
- Shared access signatures
- Encrypting data at rest
- Connecting to and creating a table
- Creating entities
- Querying tables
- Performance constraints of Azure Storage tables
Share this video
Embed this video
Video: Tables API compatibility and capabilities