Devlooped.TableStorage
1.2.0
Prefix Reserved
See the version list below for details.
dotnet add package Devlooped.TableStorage --version 1.2.0
NuGet\Install-Package Devlooped.TableStorage -Version 1.2.0
<PackageReference Include="Devlooped.TableStorage" Version="1.2.0" />
paket add Devlooped.TableStorage --version 1.2.0
#r "nuget: Devlooped.TableStorage, 1.2.0"
// Install Devlooped.TableStorage as a Cake Addin #addin nuget:?package=Devlooped.TableStorage&version=1.2.0 // Install Devlooped.TableStorage as a Cake Tool #tool nuget:?package=Devlooped.TableStorage&version=1.2.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/fea425ad1
Product | Versions 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. |
-
.NETStandard 2.0
- Microsoft.Azure.Cosmos.Table (>= 1.0.8)
- Microsoft.Bcl.AsyncInterfaces (>= 5.0.0)
- Newtonsoft.Json (>= 13.0.1)
-
.NETStandard 2.1
- Microsoft.Azure.Cosmos.Table (>= 1.0.8)
- Newtonsoft.Json (>= 13.0.1)
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 |