TiSun.SqlServerProcedure
1.1.3
dotnet add package TiSun.SqlServerProcedure --version 1.1.3
NuGet\Install-Package TiSun.SqlServerProcedure -Version 1.1.3
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="TiSun.SqlServerProcedure" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TiSun.SqlServerProcedure" Version="1.1.3" />
<PackageReference Include="TiSun.SqlServerProcedure" />
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 TiSun.SqlServerProcedure --version 1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TiSun.SqlServerProcedure, 1.1.3"
#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 TiSun.SqlServerProcedure@1.1.3
#: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=TiSun.SqlServerProcedure&version=1.1.3
#tool nuget:?package=TiSun.SqlServerProcedure&version=1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TiSun.SqlServerProcedure
Version: v1.1.3 (Stable)
Target: .NET Framework 4.5+ / C# 7.3
Database: SQL Server 2008 R2+
1. Tổng quan
TiSun.SqlServerProcedure là thư viện chuẩn hóa việc gọi Stored Procedure / SQL Query trên SQL Server, xây dựng trên Dapper, hỗ trợ:
- Procedure alias (mapping từ XML)
- Metadata cache (sys.parameters)
- DTO auto-bind (IN / OUT / INOUT)
- Table-Valued Parameter (TVP)
- PagedResult với OUTPUT auto-bind
- MultiResult / QueryMultiple
- SQL Guard + Interpolated SQL chống injection
- TransactionScope (Async-safe)
- Multi-provider (TiSunProvider)
- Execute raw SQL query
2. Cấu trúc kiến trúc
TiSunProvider └─ TiSunDbFactory └─ DapperDbExecutor ├─ ProcedureMetadataCache ├─ ProcedureAliasCache └─ DbTransactionManager
3. Khởi tạo Provider + Alias XML
3.1 Cấu trúc XML
<Provider>
<StoredProcedures ProviderName="UrencoProvider">
<Procedure Name="SysMessage_Save" Value="usp_SysMessage_Save"/>
<Procedure Name="SysMessage_Get" Value="usp_SysMessage_Get"/>
</StoredProcedures>
</Provider>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- Dapper (>= 2.1.42)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.