TableStorage 3.2.0
See the version list below for details.
dotnet add package TableStorage --version 3.2.0
NuGet\Install-Package TableStorage -Version 3.2.0
<PackageReference Include="TableStorage" Version="3.2.0" />
<PackageVersion Include="TableStorage" Version="3.2.0" />
<PackageReference Include="TableStorage" />
paket add TableStorage --version 3.2.0
#r "nuget: TableStorage, 3.2.0"
#:package TableStorage@3.2.0
#addin nuget:?package=TableStorage&version=3.2.0
#tool nuget:?package=TableStorage&version=3.2.0
TableStorage
Streamlined way of working with Azure Data Tables
Usage
Create your own TableContext
public class MyTableContext : TableContext { }
Create your models, these must be classes, inherit ITableEntity and have a parameterless constructor.
public class Model : ITableEntity
{
public string PartitionKey { get; set; }
public string RowKey { get; set; }
public DateTimeOffset? Timestamp { get; set; }
public ETag ETag { get; set; }
//Add your own custom properties, e.g:
public string Data { get; set; }
public bool Enabled { get; set; }
}
Place your tables on your TableContext. The sample below will create 2 tables in table storage, named Models1 and Models2.
public class MyTableContext : TableContext
{
public TableSet<Model> Models1 { get; set; }
public TableSet<Model> Models2 { get; set; }
}
Optionally, override the Configure method to adjust some configuration options
protected override void Configure(TableOptions options)
{
options.AutoTimestamps = true;
options.TableMode = TableUpdateMode.Merge;
}
Register your TableContext in your services
builder.Services.AddTableContext<MyTableContext>(builder.Configuration.GetConnectionString("MyConnectionString"));
Inject MyTableContext into your class and use as needed
public class MyService
{
private readonly MyTableContext _context;
public MyService(MyTableContext context)
{
_context = context;
}
public async Task DoSomething(CancellationToken token)
{
var entity = await _context.Models1.GetEntityOrDefaultAsync("partitionKey", "rowKey", token);
if (entity is not null)
{
//Do more
}
}
}
For some special cases, your table name might not be known at compile time. To handle those, an extension method has been added:
var tableSet = context.GetTableSet<Model>("randomname");
Linq
A few simple Linq extension methods have been provided in the TableStorage.Linq namespace.
Note: Select will include the actual transformation. If you want the original model, with only the selected fields retrieved, use SelectFields instead.
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | 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.1
- Azure.Data.Tables (>= 12.0.0)
- FastExpressionCompiler (>= 3.3.4)
- Microsoft.Extensions.Configuration.Abstractions (>= 3.1.0)
- Microsoft.Extensions.DependencyInjection (>= 3.1.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on TableStorage:
| Package | Downloads |
|---|---|
|
TableStorage.RuntimeCompilations
Package Description |
|
|
TableStorage.Fluent
Package Description |
|
|
TableStorage.Fluent.Extended
Package Description |
|
|
TableStorage.Fluent.RuntimeCompilations
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.0.0-preview-06 | 67 | 2/4/2026 |
| 6.0.0-preview-05 | 53 | 1/30/2026 |
| 6.0.0-preview-04 | 57 | 1/13/2026 |
| 6.0.0-preview-03 | 62 | 1/13/2026 |
| 6.0.0-preview-01 | 105 | 1/8/2026 |
| 5.5.0 | 177 | 11/28/2025 |
| 5.4.0 | 215 | 10/26/2025 |
| 5.3.0 | 115 | 9/26/2025 |
| 5.1.0 | 217 | 8/11/2025 |
| 5.1.0-preview.3 | 172 | 7/28/2025 |
| 5.1.0-preview.2 | 456 | 7/25/2025 |
| 5.1.0-preview.1 | 171 | 6/17/2025 |
| 5.0.2 | 222 | 6/5/2025 |
| 5.0.1 | 211 | 5/26/2025 |
| 5.0.0 | 203 | 5/26/2025 |
| 5.0.0-preview.7 | 213 | 4/16/2025 |
| 5.0.0-preview.6 | 146 | 3/28/2025 |
| 5.0.0-preview.5 | 139 | 3/28/2025 |
| 5.0.0-preview.4 | 175 | 3/19/2025 |
| 3.2.0 | 318 | 6/8/2023 |