TableStorage 2.0.0
See the version list below for details.
dotnet add package TableStorage --version 2.0.0
NuGet\Install-Package TableStorage -Version 2.0.0
<PackageReference Include="TableStorage" Version="2.0.0" />
<PackageVersion Include="TableStorage" Version="2.0.0" />
<PackageReference Include="TableStorage" />
paket add TableStorage --version 2.0.0
#r "nuget: TableStorage, 2.0.0"
#:package TableStorage@2.0.0
#addin nuget:?package=TableStorage&version=2.0.0
#tool nuget:?package=TableStorage&version=2.0.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
}
}
}
Linq
A few simple Linq extension methods have been provided in the TableStorage.Linq namespace.
| Product | Versions 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. 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. |
-
net6.0
- Azure.Data.Tables (>= 12.6.1)
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TableStorage:
| Package | Downloads |
|---|---|
|
TableStorage.RuntimeCompilations
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.4.0 | 147 | 10/26/2025 |
| 5.3.0 | 79 | 9/26/2025 |
| 5.1.0 | 180 | 8/11/2025 |
| 5.1.0-preview.3 | 141 | 7/28/2025 |
| 5.1.0-preview.2 | 419 | 7/25/2025 |
| 5.1.0-preview.1 | 144 | 6/17/2025 |
| 5.0.2 | 185 | 6/5/2025 |
| 5.0.1 | 165 | 5/26/2025 |
| 5.0.0 | 174 | 5/26/2025 |
| 5.0.0-preview.7 | 182 | 4/16/2025 |
| 5.0.0-preview.6 | 119 | 3/28/2025 |
| 5.0.0-preview.5 | 109 | 3/28/2025 |
| 5.0.0-preview.4 | 142 | 3/19/2025 |
| 5.0.0-preview.3 | 138 | 3/17/2025 |
| 5.0.0-preview.2 | 135 | 3/13/2025 |
| 5.0.0-preview.1 | 79 | 2/26/2025 |
| 4.7.0-preview.2 | 73 | 1/15/2025 |
| 4.6.0 | 162 | 11/18/2024 |
| 4.5.0 | 107 | 11/12/2024 |
| 4.3.0 | 100 | 7/25/2024 |
| 4.2.2 | 96 | 7/25/2024 |
| 4.2.1 | 156 | 4/23/2024 |
| 4.2.0 | 130 | 3/18/2024 |
| 4.1.0 | 113 | 3/15/2024 |
| 4.0.0-preview.9 | 91 | 3/13/2024 |
| 4.0.0-preview.8 | 93 | 3/13/2024 |
| 4.0.0-preview.7 | 93 | 2/8/2024 |
| 4.0.0-preview.6 | 96 | 2/4/2024 |
| 4.0.0-preview.5 | 92 | 1/18/2024 |
| 4.0.0-preview.4 | 131 | 12/6/2023 |
| 4.0.0-preview.3 | 106 | 12/6/2023 |
| 4.0.0-preview.2 | 168 | 11/6/2023 |
| 4.0.0-preview.1 | 118 | 10/11/2023 |
| 3.2.0 | 287 | 6/8/2023 |
| 3.1.0 | 319 | 2/26/2023 |
| 3.0.0 | 303 | 2/26/2023 |
| 2.4.1 | 365 | 1/12/2023 |
| 2.4.0 | 362 | 1/12/2023 |
| 2.3.1 | 364 | 1/11/2023 |
| 2.3.0 | 474 | 9/8/2022 |
| 2.2.0 | 460 | 7/25/2022 |
| 2.1.0 | 504 | 7/17/2022 |
| 2.0.0 | 503 | 7/17/2022 |
| 1.1.0 | 496 | 7/16/2022 |
| 1.0.0 | 500 | 7/16/2022 |