Muonroi.Data.Dapper
2.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Muonroi.Data.Dapper --version 2.0.1
NuGet\Install-Package Muonroi.Data.Dapper -Version 2.0.1
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="Muonroi.Data.Dapper" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Muonroi.Data.Dapper" Version="2.0.1" />
<PackageReference Include="Muonroi.Data.Dapper" />
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 Muonroi.Data.Dapper --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Muonroi.Data.Dapper, 2.0.1"
#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 Muonroi.Data.Dapper@2.0.1
#: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=Muonroi.Data.Dapper&version=2.0.1
#tool nuget:?package=Muonroi.Data.Dapper&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Muonroi.Data.Dapper
High-performance Dapper implementations with row-level security.
Overview
Features Dapper repository patterns (MDapperRepositoryBase) and advanced Row-Level Security (RLS) via TenantRlsDapper and DapperRlsServiceCollectionExtensions.
Features
- Dapper Repository: Employs
MDapperRepositoryBasefor fast micro-ORM operations. - Row-Level Security: Uses
TenantRlsDapperto enforce tenant isolation constraints. - Provider Settings: Supports different DB providers via
MsSqlTenantSessionContextSetterandMySqlTenantSessionContextSetter.
Installation
dotnet add package Muonroi.Data.Dapper
Quick Start
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDapperRlsServices();
Ecosystem Combinations
- With Muonroi.Data.Abstractions: Resolves high-speed read queries while complementing generic repositories.
- Full Stack Example:
builder.Services.AddDapperRlsServices()
.AddScoped<ITenantSessionContextSetter, MsSqlTenantSessionContextSetter>();
Samples
Check out the Samples directory for full examples.
License
MIT
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Dapper (>= 2.1.66)
- Dapper.Extensions.NetCore (>= 5.3.1)
- Google.Protobuf (>= 3.29.1)
- Microsoft.Data.SqlClient (>= 5.1.7)
- Microsoft.EntityFrameworkCore (>= 8.0.24)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.3)
- Muonroi.Core (>= 2.0.1)
- Muonroi.Core.Abstractions (>= 2.0.1)
- Muonroi.Data.Abstractions (>= 2.0.1)
- Muonroi.Logging.Abstractions (>= 2.0.1)
- Muonroi.Tenancy.Abstractions (>= 2.0.1)
- Npgsql (>= 8.0.9)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Muonroi.Data.Dapper:
| Package | Downloads |
|---|---|
|
Muonroi.BuildingBlock.All
Metapackage for Muonroi Building Block - Includes all sub-packages for a complete infrastructure setup. |
GitHub repositories
This package is not used by any popular GitHub repositories.