Az.Storage 2.0.2

dotnet add package Az.Storage --version 2.0.2
NuGet\Install-Package Az.Storage -Version 2.0.2
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="Az.Storage" Version="2.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Az.Storage --version 2.0.2
#r "nuget: Az.Storage, 2.0.2"
#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 Az.Storage as a Cake Addin
#addin nuget:?package=Az.Storage&version=2.0.2

// Install Az.Storage as a Cake Tool
#tool nuget:?package=Az.Storage&version=2.0.2

Azure Storage Helpers

This library has helper classes to easily access and manipulate Azure Storage Tables and Blobs.

The library assumes Table name is same as Type name. It is possible to override this default behavior by specifying a Table name.

Creating a cached Dictionary of <PartitionKey, <RowKey, Name>>

// Entities used for MapCache (i.e. Contacts below) should derive from BaseEntity
MapCache.Context = new AzureStorageContext("storage-connection-string");
MapCache.Add<Contacts>();
foreach (var c in MapCache.Get<Contacts>().GetValue("Some-PartitionKey"))
{
  Console.WriteLine($"{c.Key} : {c.Value}");
}

Creating a cached Dictionary of <PartitionKey, <RowKey, T>>

// Entities used for EntityCache (i.e. Leads/Org below) should derive from TableEntity
EntityCache.Context = new AzureStorageContext("storage-connection-string");
EntityCache.Add<Leads>(); // 30 minutes default cache
EntityCache.Add<Org>(TimeSpan.FromMinutes(180));
var leads = EntityCache.Get<Leads>();
foreach (var c in leads.GetValue("Some-PartitionKey"))
{
  Console.WriteLine($"{c.Key} : {c.Value.Phone}");
}

Using AzDataServiceBase

public StoreController(AzDataServiceBase<Store> store) { }
// ... action
var stores = store.GetSet("partition");

Creating an EntityService deriving from AzDataServiceBase

// Controller
public StoreController(StoreService store) { }
// ... action
var stores = store.GetSet("partition");

// Service
public class StoreService : AzDataServiceBase<Store>
{
  public StoreService(AzureStorageContext context) : base(context) { }
  public override async Task<Store> GetOne(string id)
  {
    return await _context.GetRow<Store>(id.Substring(0, 3), id);
  }
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.2 182 1/3/2024
2.0.1 258 3/23/2023
1.0.8 749 3/13/2022
1.0.7 1,484 5/8/2021
1.0.6 369 3/29/2021
1.0.5 369 3/19/2021
1.0.4 397 3/18/2021
1.0.3 389 3/18/2021
1.0.2 435 3/5/2021
1.0.1 450 3/5/2021
1.0.0 353 3/2/2021