CaptainOath.DataStore
1.0.0
See the version list below for details.
dotnet add package CaptainOath.DataStore --version 1.0.0
NuGet\Install-Package CaptainOath.DataStore -Version 1.0.0
<PackageReference Include="CaptainOath.DataStore" Version="1.0.0" />
<PackageVersion Include="CaptainOath.DataStore" Version="1.0.0" />
<PackageReference Include="CaptainOath.DataStore" />
paket add CaptainOath.DataStore --version 1.0.0
#r "nuget: CaptainOath.DataStore, 1.0.0"
#:package CaptainOath.DataStore@1.0.0
#addin nuget:?package=CaptainOath.DataStore&version=1.0.0
#tool nuget:?package=CaptainOath.DataStore&version=1.0.0
Captain.Shared Table Storage Repository
This nuget contains a .NET 8 class library repository application to connect to Azure Table Storage using managed identity.
Getting Started
This is a nuget for data access. It provides a streamlined approach for integrating Azure Table Storage operations into .NET applications. It leverages Azure's managed identity for secure and simplified access, and offers a generic repository pattern for CRUD operations on Table Storage tables.
Overview
- Create a table in the storage account
- Insert an entity into the table
- Insert or replace an entity into the table (Upsert)
- Get an entity from the table by partition key and row key
- Update an entity in the table
- Delete an entity from the table by partition key and row key
- Delete a table from the storage account
- Get entities from the table by query
Installation dotnet add package CaptainOath.DataStore
Register Service
services.AddTableStorageClient("accountEndPointUrl");
Using the Interface `public class MyCosmosDbService { private readonly ITableStorageRepository<TableEntity> _repository;
public MyTableStorageService(ITableStorageRepository<TableEntity> repository)
{
_repository = repository;
}
public async Task CreateMyEntityAsync(string tableName)
{
await _repository.CreateTableAsync(tableName);
}
public async Task InsertMyEntityAsync(string tableName, TableEntity entity)
{
await _repository.InsertTableEntityAsync(tableName, entity);
}
}
`
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
-
net8.0
- Azure.Data.Tables (>= 12.8.3)
- Azure.Identity (>= 1.10.4)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- System.Linq.Async (>= 6.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.