PlumX.Core.DomainBase.Dapper 1.0.0-preview.7

This is a prerelease version of PlumX.Core.DomainBase.Dapper.
dotnet add package PlumX.Core.DomainBase.Dapper --version 1.0.0-preview.7
                    
NuGet\Install-Package PlumX.Core.DomainBase.Dapper -Version 1.0.0-preview.7
                    
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="PlumX.Core.DomainBase.Dapper" Version="1.0.0-preview.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PlumX.Core.DomainBase.Dapper" Version="1.0.0-preview.7" />
                    
Directory.Packages.props
<PackageReference Include="PlumX.Core.DomainBase.Dapper" />
                    
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 PlumX.Core.DomainBase.Dapper --version 1.0.0-preview.7
                    
#r "nuget: PlumX.Core.DomainBase.Dapper, 1.0.0-preview.7"
                    
#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 PlumX.Core.DomainBase.Dapper@1.0.0-preview.7
                    
#: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=PlumX.Core.DomainBase.Dapper&version=1.0.0-preview.7&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PlumX.Core.DomainBase.Dapper&version=1.0.0-preview.7&prerelease
                    
Install as a Cake Tool

PlumX.Core.DomainBase.Dapper

NuGet 包 ID:PlumX.Core.DomainBase.Dapper

定位

PlumX.Core.DomainBase.Dapper 是 DomainBase 的 Dapper/关系数据库适配器,复用领域实体和仓储契约,提供轻量 SQL 查询、事务连接和数据访问扩展。它不替代 EF Core adapter。

目标框架与依赖

  • 目标框架:net8.0
  • 项目引用:PlumX.Core.DomainBase
  • 主要依赖:Dapper、Microsoft.EntityFrameworkCore.Relational

接入方式

业务项目引用本项目后,直接使用 Tools/DapperExtend.cs 中的扩展,并自行管理 DbConnection、SQL 和事务生命周期。该项目没有独立的 AddDapper 全局注册入口,连接池和连接字符串由应用的数据访问层负责。

主要 API

  • DapperExtend:连接查询、执行、分页和事务相关扩展。
  • DomainBase 的 IEntity、仓储及事务契约:保持与 EF adapter 一致的领域边界。

配置与边界

本项目不读取固定配置节,也不保存数据库凭据。使用者应通过标准配置/选项注入连接字符串,参数化 SQL,避免把 Dapper 查询和业务聚合规则混在基础扩展中。

完整使用示例

参数化查询与连接生命周期的最小示例见 模块使用示例

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-preview.7 52 9/2/2026
1.0.0-preview.6 54 9/1/2026
1.0.0-preview.5 59 8/31/2026
1.0.0-preview.4 69 8/19/2026
1.0.0-preview.3 63 8/18/2026
1.0.0-preview.1 69 8/14/2026