TCIS.Persistence.Abstractions 1.0.0-rc.9

This is a prerelease version of TCIS.Persistence.Abstractions.
dotnet add package TCIS.Persistence.Abstractions --version 1.0.0-rc.9
                    
NuGet\Install-Package TCIS.Persistence.Abstractions -Version 1.0.0-rc.9
                    
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="TCIS.Persistence.Abstractions" Version="1.0.0-rc.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TCIS.Persistence.Abstractions" Version="1.0.0-rc.9" />
                    
Directory.Packages.props
<PackageReference Include="TCIS.Persistence.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TCIS.Persistence.Abstractions --version 1.0.0-rc.9
                    
#r "nuget: TCIS.Persistence.Abstractions, 1.0.0-rc.9"
                    
#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.
#:package TCIS.Persistence.Abstractions@1.0.0-rc.9
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TCIS.Persistence.Abstractions&version=1.0.0-rc.9&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TCIS.Persistence.Abstractions&version=1.0.0-rc.9&prerelease
                    
Install as a Cake Tool

TCIS.Persistence.Abstractions

📖 Overview

TCIS.Persistence.Abstractions provides standard interfaces and configuration classes (Options) for the Persistence layer (Data access and storage) in the TCIS Framework. This library helps decouple business logic from specific ORM technologies (such as EF Core or Dapper).

✨ Features

  • IDbConnectionFactory: Encapsulates the initialization and opening of Database Connections (TenantAware).
  • IDapperContext: Supports data querying through Dapper.
  • PersistenceOptions: Standard mapping for database configurations.

📦 Installation

dotnet add package TCIS.Persistence.Abstractions

⚙️ Configuration (appsettings.json)

{
  "ConfigurationStore": {
    "ConnectionString": "Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;",
    "ReadConnectionString": "Server=myReplicaAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;"
  }
}

🚀 Usage

Use PersistenceOptions alongside the IOptions pattern or pass it directly into the underlying Factory classes.

using Microsoft.Extensions.Options;
using TCIS.Persistence.Data;

public class MyDatabaseService
{
    private readonly PersistenceOptions _options;
    
    public MyDatabaseService(IOptions<PersistenceOptions> options)
    {
        _options = options.Value;
    }
    
    public void DisplayConfig()
    {
        Console.WriteLine($"Primary DB: {_options.ConnectionString}");
        Console.WriteLine($"Replica DB: {_options.ReadConnectionString ?? _options.ConnectionString}");
    }
}
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on TCIS.Persistence.Abstractions:

Package Downloads
TCIS.Pluggable.Abstractions

TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. SDK for creating pipeline steps and contexts in TCIS Framework.

TCIS.Persistence.EntityFrameworkCore

TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Core Persistence EntityFrameworkCore implementation.

TCIS.Persistence.Dapper

TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Core Persistence Dapper implementation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-rc.9 58 7/21/2026
1.0.0-rc.8 56 7/21/2026
1.0.0-rc.7 77 7/17/2026