Devlooped.TableStorage 1.3.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Devlooped.TableStorage --version 1.3.0                
NuGet\Install-Package Devlooped.TableStorage -Version 1.3.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Devlooped.TableStorage" Version="1.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Devlooped.TableStorage --version 1.3.0                
#r "nuget: Devlooped.TableStorage, 1.3.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Devlooped.TableStorage as a Cake Addin
#addin nuget:?package=Devlooped.TableStorage&version=1.3.0

// Install Devlooped.TableStorage as a Cake Tool
#tool nuget:?package=Devlooped.TableStorage&version=1.3.0                

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/3756104bc

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Devlooped.TableStorage:

Package Downloads
Devlooped.TableStorage.Protobuf

A Protocol Buffers binary serializer for use with document-based repositories. > This project uses SponsorLink and may issue IDE-only warnings if no active sponsorship is detected. > Learn more at https://github.com/devlooped#sponsorlink.

Devlooped.TableStorage.Bson

A BSON binary serializer for use with document-based repositories. > This project uses SponsorLink and may issue IDE-only warnings if no active sponsorship is detected. > Learn more at https://github.com/devlooped#sponsorlink.

Devlooped.TableStorage.MessagePack

A MessagePack binary serializer for use with document-based repositories. > This project uses SponsorLink and may issue IDE-only warnings if no active sponsorship is detected. > Learn more at https://github.com/devlooped#sponsorlink.

Devlooped.TableStorage.Newtonsoft

A Json.NET serializer for use with document-based repositories. > This project uses SponsorLink and may issue IDE-only warnings if no active sponsorship is detected. > Learn more at https://github.com/devlooped#sponsorlink.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.2.1 466 10/22/2024
5.2.0 975 7/24/2024
5.2.0-rc.1 83 7/13/2024
5.2.0-rc 222 7/10/2024
5.2.0-beta 239 7/6/2024
5.1.2 1,443 1/25/2024
5.1.1 346 10/4/2023
5.1.0 727 8/11/2023
4.1.3 1,259 1/20/2023
4.1.2 855 1/16/2023
4.0.0 1,546 8/26/2022
4.0.0-rc.1 109 8/26/2022
4.0.0-rc 367 8/15/2022
4.0.0-beta 526 5/17/2022
4.0.0-alpha 391 5/4/2022
3.2.0 1,687 12/13/2021
3.1.1 1,472 8/29/2021
3.1.0 1,367 8/13/2021
3.0.3 1,299 7/28/2021
3.0.2 1,391 7/1/2021
2.0.2 1,422 6/23/2021
2.0.1 1,390 6/17/2021
2.0.0 1,359 6/16/2021
1.3.0 1,125 5/31/2021
1.2.1 466 5/29/2021
1.2.0 507 5/26/2021
1.0.4 641 5/16/2021