Devlooped.TableStorage.Source
2.0.0
Prefix Reserved
See the version list below for details.
dotnet add package Devlooped.TableStorage.Source --version 2.0.0
NuGet\Install-Package Devlooped.TableStorage.Source -Version 2.0.0
<PackageReference Include="Devlooped.TableStorage.Source" Version="2.0.0" />
paket add Devlooped.TableStorage.Source --version 2.0.0
#r "nuget: Devlooped.TableStorage.Source, 2.0.0"
// Install Devlooped.TableStorage.Source as a Cake Addin
#addin nuget:?package=Devlooped.TableStorage.Source&version=2.0.0
// Install Devlooped.TableStorage.Source as a Cake Tool
#tool nuget:?package=Devlooped.TableStorage.Source&version=2.0.0
Source-only package for repository pattern with POCO object support for storing to Azure/CosmosDB 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/97fe6f8ee
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.OData.Client (>= 7.9.0)
- System.Text.Json (>= 5.0.0)
-
.NETStandard 2.1
- Microsoft.Azure.Cosmos.Table (>= 1.0.8)
- Microsoft.OData.Client (>= 7.9.0)
- System.Text.Json (>= 5.0.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Devlooped.TableStorage.Source:
Package | Downloads |
---|---|
Devlooped.TableStorage.Protobuf.Source
A source-only Protocol Buffers binary serializer for use with document-based repositories. |
|
Devlooped.TableStorage.Bson.Source
A source-only BSON binary serializer for use with document-based repositories. |
|
Devlooped.TableStorage.MessagePack.Source
A source-only MessagePack binary serializer for use with document-based repositories. |
|
Devlooped.TableStorage.Newtonsoft.Source
A source-only Newtonsoft.Json-based serializer for use with document-based repositories. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
5.1.2 | 386 | 1/25/2024 |
5.1.1 | 934 | 10/4/2023 |
5.1.0 | 881 | 8/11/2023 |
5.0.2 | 734 | 8/8/2023 |
5.0.1 | 342 | 7/25/2023 |
5.0.0 | 444 | 7/25/2023 |
4.3.1 | 474 | 7/24/2023 |
4.3.0 | 389 | 6/27/2023 |
4.2.1 | 511 | 4/17/2023 |
4.2.0 | 667 | 3/28/2023 |
4.1.3 | 838 | 1/20/2023 |
4.1.2 | 904 | 1/16/2023 |
4.0.0 | 1,439 | 8/26/2022 |
4.0.0-rc.1 | 90 | 8/26/2022 |
4.0.0-rc | 777 | 8/15/2022 |
4.0.0-beta | 759 | 5/17/2022 |
4.0.0-alpha | 705 | 5/4/2022 |
3.2.0 | 1,279 | 12/13/2021 |
3.1.1 | 1,248 | 8/29/2021 |
3.1.0 | 1,328 | 8/13/2021 |
3.0.3 | 1,246 | 7/28/2021 |
3.0.2 | 1,272 | 7/1/2021 |
2.0.2 | 1,272 | 6/23/2021 |
2.0.1 | 1,378 | 6/17/2021 |
2.0.0 | 1,421 | 6/16/2021 |
1.3.0 | 1,029 | 5/31/2021 |
1.2.1 | 473 | 5/29/2021 |
1.2.0 | 413 | 5/26/2021 |
1.1.1 | 409 | 5/26/2021 |
1.1.0 | 395 | 5/26/2021 |
1.0.4 | 408 | 5/16/2021 |