EtlAnalytics.RulesEngine.Dapper
2.0.0
dotnet add package EtlAnalytics.RulesEngine.Dapper --version 2.0.0
NuGet\Install-Package EtlAnalytics.RulesEngine.Dapper -Version 2.0.0
<PackageReference Include="EtlAnalytics.RulesEngine.Dapper" Version="2.0.0" />
<PackageVersion Include="EtlAnalytics.RulesEngine.Dapper" Version="2.0.0" />
<PackageReference Include="EtlAnalytics.RulesEngine.Dapper" />
paket add EtlAnalytics.RulesEngine.Dapper --version 2.0.0
#r "nuget: EtlAnalytics.RulesEngine.Dapper, 2.0.0"
#:package EtlAnalytics.RulesEngine.Dapper@2.0.0
#addin nuget:?package=EtlAnalytics.RulesEngine.Dapper&version=2.0.0
#tool nuget:?package=EtlAnalytics.RulesEngine.Dapper&version=2.0.0
EtlAnalytics.RulesEngine.Dapper 🚀
This package provides the default Dapper-based SQL execution implementation for the EtlAnalytics.RulesEngine. It allows the engine to execute T-SQL, PostgreSQL, and MySQL rules using the popular Dapper micro-ORM.
🏗️ Role in the Ecosystem
The EtlAnalytics.RulesEngine is decoupled from specific database libraries. This package serves as the "Hands" of the engine, translating rule definitions into actual database queries.
| Feature | Support |
|---|---|
| Frameworks | .NET 8, .NET 10 |
| Databases | SQL Server, PostgreSQL, MySQL |
| ORM | Dapper |
| Execution Mode | Asynchronous |
📦 Installation
dotnet add package EtlAnalytics.RulesEngine.Dapper
🚀 Quick Setup
To use this provider, register the DapperSqlRuleExecutor and your desired IRuleDbProvider implementations in your application's Dependency Injection container:
using EtlAnalytics.RulesEngine.Interfaces;
using EtlAnalytics.RulesEngine.Providers; // From this package
// 1. Register the SQL Executor
builder.Services.AddScoped<ISqlRuleExecutor, DapperSqlRuleExecutor>();
// 2. Register DB Providers
// You only need to register the ones you plan to use
builder.Services.AddScoped<IRuleDbProvider, SqlServerRuleDbProvider>();
💡 How it Works
The DapperSqlRuleExecutor automatically handles:
- Connection Management: Resolves the correct
IRuleDbProviderbased on the rule's metadata. - Parameter Injection: Passes
@PreviousResultJsonand@StepResultsJsoninto your SQL queries. - Result Mapping: Returns query results as a collection of
dynamicobjects, which can then be piped into subsequent C# or SQL rules.
🔒 Security
This package respects the sandboxing and timeout configurations defined in the core EtlAnalytics.RulesEngine. All queries executed through this provider are subject to the global T-SQL keyword blacklist and mandatory execution timeouts.
📄 License
This project is licensed under the MIT License.
| 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 is compatible. 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. |
-
net10.0
- Dapper (>= 2.1.79)
- EtlAnalytics.RulesEngine (>= 2.0.0)
- Microsoft.Data.SqlClient (>= 7.0.2)
-
net8.0
- Dapper (>= 2.1.79)
- EtlAnalytics.RulesEngine (>= 2.0.0)
- Microsoft.Data.SqlClient (>= 7.0.2)
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 |
|---|---|---|
| 2.0.0 | 127 | 7/22/2026 |