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
                    
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="EtlAnalytics.RulesEngine.Dapper" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EtlAnalytics.RulesEngine.Dapper" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="EtlAnalytics.RulesEngine.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 EtlAnalytics.RulesEngine.Dapper --version 2.0.0
                    
#r "nuget: EtlAnalytics.RulesEngine.Dapper, 2.0.0"
                    
#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 EtlAnalytics.RulesEngine.Dapper@2.0.0
                    
#: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=EtlAnalytics.RulesEngine.Dapper&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=EtlAnalytics.RulesEngine.Dapper&version=2.0.0
                    
Install as a Cake Tool

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:

  1. Connection Management: Resolves the correct IRuleDbProvider based on the rule's metadata.
  2. Parameter Injection: Passes @PreviousResultJson and @StepResultsJson into your SQL queries.
  3. Result Mapping: Returns query results as a collection of dynamic objects, 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 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. 
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
2.0.0 127 7/22/2026