TableStorage.Abstractions.POCO NuGet Package

A repository wrapper for Azure Table Storage that uses POCOs (Plain Old CLR Objects) instead of objects that implemeent ITableEntity.

The Azure Storage SDK requires that objects that it works with to implement the ITableEntity interface.

This puts us into one of two places that are often not desirable:

You implement the ITableEntity interace, or inherit from TableEntity. This is easy, but now you've got a leaky abstraction, as well as properties that won't make much sense in your domain (e.g. instead of a UserId, you've now got a RowKey, of the wrong type), or you have fields that are out of place, like ETag and Timestamp.
You create DTOs to save to ship data back and forth from the domain to Table Storage. This is a common style, but often is overkill, especially if we're just looking for a simple abstraction on top of Azure Table Storage.
This simple library seeks to take care of the mapping for us, so that you can continue to write your domain objects as POCOs, while still being able to leverage the Azure Storage SDK.

The library will convert simple properties to fields in Azure Table Storage.

Complex types will serialize as json.




Got any TableStorage.Abstractions.POCO Question?





Info

Version: 4.0.0
Author(s): Giovanni Galbo
Last Update: Wednesday, August 30, 2023
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/giometrix/TableStorage.Abstractions.POCO
NuGet Url: https://www.nuget.org/packages/TableStorage.Abstractions.POCO


Install
Install-Package TableStorage.Abstractions.POCO
dotnet add package TableStorage.Abstractions.POCO
paket add TableStorage.Abstractions.POCO
TableStorage.Abstractions.POCO Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

1.6

avg-downloads-per-day

17

days-since-last-release

246