Muonroi.RuleEngine.EntityFrameworkCore 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Muonroi.RuleEngine.EntityFrameworkCore --version 2.0.0
                    
NuGet\Install-Package Muonroi.RuleEngine.EntityFrameworkCore -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="Muonroi.RuleEngine.EntityFrameworkCore" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Muonroi.RuleEngine.EntityFrameworkCore" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Muonroi.RuleEngine.EntityFrameworkCore" />
                    
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 Muonroi.RuleEngine.EntityFrameworkCore --version 2.0.0
                    
#r "nuget: Muonroi.RuleEngine.EntityFrameworkCore, 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 Muonroi.RuleEngine.EntityFrameworkCore@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=Muonroi.RuleEngine.EntityFrameworkCore&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Muonroi.RuleEngine.EntityFrameworkCore&version=2.0.0
                    
Install as a Cake Tool

Muonroi.RuleEngine.EntityFrameworkCore

NuGet

Entity Framework Core integration for the Muonroi Rule Engine, providing persistence, multi-tenant row-level security, and audit trails.

Installation

dotnet add package Muonroi.RuleEngine.EntityFrameworkCore

Overview

This package provides a robust EF Core data layer for the runtime environment. It implements RuleEngineDbContext to persist rule sets, templates, and audits. It includes PostgresRuleSetStore and PostgresRuleSetAuditStore for PostgreSQL implementations, ensuring rule changes are transactional and audited via RuleSetAuditRecord.

Features

  • Database Context: Use RuleEngineDbContext for tracking rule states, assignments, and approvals.
  • Data Stores: Includes PostgresRuleSetStore and PostgresRuleSetAuditStore as concrete implementations of IRuleSetStore.
  • Row-Level Security: Secures tenant data automatically using TenantRlsConnectionInterceptor.
  • Canary & Approvals: Manage rule life-cycles through CanaryRolloutService and RuleSetApprovalService.
  • Tenant Control: Manage TenantQuotaOverrideRecord and TenantRuleAssignmentRecord safely.

Quick Start

// Configure EF Core for Rule Engine persistence
builder.Services.AddRuleEngineRuntime(options =>
{
    options.UseEntityFrameworkCore(dbOptions => 
    {
        dbOptions.UseNpgsql(connectionString)
                 .AddInterceptors(new TenantRlsConnectionInterceptor());
    });
});

Ecosystem Combinations

+ Tenancy.Core → Multi-Tenant Databases

Works seamlessly with TenantContext to apply Row-Level Security interceptors to PostgreSQL, guaranteeing tenant rule sets are isolated at the database level.

+ Experience Engine → Lineage Tracking

Maintains strict requirement tracking using RequirementRecord and TestLinkRecord to feed provenance data back to the AI experience brain.

Samples

License

Apache 2.0 — see LICENSE-APACHE.

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 (1)

Showing the top 1 NuGet packages that depend on Muonroi.RuleEngine.EntityFrameworkCore:

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.

Version Downloads Last Updated
2.0.2 99 8/26/2026
2.0.1 121 8/26/2026
2.0.0 139 8/14/2026