Skip to main content
Devlooped.TableStorage package icon

Devlooped.TableStorage

Repository pattern with POCO object support for storing to Azure/Cosmos DB Table Storage. Usage: Given the following class: [Table("Products")] class Product { // NOTE: custom constructor public Product(string category, string id) { Category = category; Id = id; } // NOTE: read-only property [PartitionKey] public string Category { get; } [RowKey] public string Id { get; } public string? Title { get; set; } public double Price { get; set; } } It can be persisted and retrieved with: var account = CloudStorageAccount.DevelopmentStorageAccount; // or production one var repo = TableRepository.Create<Product>(storageAccount); var product = new Product("catId-asdf", "1234") { Title = "Table Storage is Cool", Price = 25.5, }; // Insert or Update behavior (aka "upsert") await repo.PutAsync(product); // Enumerate all products in category "catId-asdf" await foreach (var p in repo.EnumerateAsync("catId-asdf") Console.WriteLine(p.Price); // Get previously saved product. Product saved = await repo.GetAsync("catId-asdf", "1234"); // Delete product await repo.DeleteAsync("catId-asdf", "1234"); // Can also delete passing entity await repo.DeleteAsync(saved); Built from https://github.com/devlooped/TableStorage/tree/fea425ad1

Total Downloads
74.3K
74,267
Published
May 26, 2021
Latest stable version

Install

.NET CLI
dotnet add package Devlooped.TableStorage --version 1.2.0
Package Manager Console
Install-Package Devlooped.TableStorage -Version 1.2.0
PackageReference
<PackageReference Include="Devlooped.TableStorage" Version="1.2.0" />

Frameworks

.NETStandard2.0 .NETStandard2.1

Dependencies

[1.0.8, )
[5.0.0, )
Newtonsoft.Json
.NETStandard2.0
[13.0.1, )
[1.0.8, )
Newtonsoft.Json
.NETStandard2.1
[13.0.1, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.