Muonroi.RuleEngine.EntityFrameworkCore
2.0.0
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
<PackageReference Include="Muonroi.RuleEngine.EntityFrameworkCore" Version="2.0.0" />
<PackageVersion Include="Muonroi.RuleEngine.EntityFrameworkCore" Version="2.0.0" />
<PackageReference Include="Muonroi.RuleEngine.EntityFrameworkCore" />
paket add Muonroi.RuleEngine.EntityFrameworkCore --version 2.0.0
#r "nuget: Muonroi.RuleEngine.EntityFrameworkCore, 2.0.0"
#:package Muonroi.RuleEngine.EntityFrameworkCore@2.0.0
#addin nuget:?package=Muonroi.RuleEngine.EntityFrameworkCore&version=2.0.0
#tool nuget:?package=Muonroi.RuleEngine.EntityFrameworkCore&version=2.0.0
Muonroi.RuleEngine.EntityFrameworkCore
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
RuleEngineDbContextfor tracking rule states, assignments, and approvals. - Data Stores: Includes
PostgresRuleSetStoreandPostgresRuleSetAuditStoreas concrete implementations ofIRuleSetStore. - Row-Level Security: Secures tenant data automatically using
TenantRlsConnectionInterceptor. - Canary & Approvals: Manage rule life-cycles through
CanaryRolloutServiceandRuleSetApprovalService. - Tenant Control: Manage
TenantQuotaOverrideRecordandTenantRuleAssignmentRecordsafely.
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 | 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 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. |
-
net8.0
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.24)
- Muonroi.Data.EntityFrameworkCore.SqlServer (>= 2.0.0)
- Muonroi.RuleEngine.Runtime (>= 2.0.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 8.0.11)
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.