Muonroi.Data.Abstractions 2.0.2

dotnet add package Muonroi.Data.Abstractions --version 2.0.2
                    
NuGet\Install-Package Muonroi.Data.Abstractions -Version 2.0.2
                    
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.Data.Abstractions" Version="2.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Muonroi.Data.Abstractions" Version="2.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Muonroi.Data.Abstractions" />
                    
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.Data.Abstractions --version 2.0.2
                    
#r "nuget: Muonroi.Data.Abstractions, 2.0.2"
                    
#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.Data.Abstractions@2.0.2
                    
#: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.Data.Abstractions&version=2.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Muonroi.Data.Abstractions&version=2.0.2
                    
Install as a Cake Tool

Muonroi.Data.Abstractions

NuGet Status NuGet Download

Data-layer contracts and repository patterns for the Muonroi ecosystem.

Overview

Houses common data access patterns, including IMRepositoryBase, IUnitOfWork, and entity markers like IAuditable and IEntityBase.

Features

  • Repository Pattern: Exposes IMRepositoryBase for generalized data fetching.
  • UoW Management: Defines IUnitOfWork and MultiDbUnitOfWork for transaction control.
  • Entity Interfaces: Includes IAuditable, IEntityBase, and ISiteScoped to standardize domain entities.

Installation

dotnet add package Muonroi.Data.Abstractions

Quick Start

public class MyEntity : IEntityBase, IAuditable
{
    public Guid Id { get; set; }
    public DateTime CreatedAt { get; set; }
}

Ecosystem Combinations

  • With Muonroi.Data.EntityFrameworkCore: EF Core implementations map directly to IMRepositoryBase.
  • Full Stack Example:
public class MyRepository : IMRepositoryBase<MyEntity> 
{
    // Implementation
}

Samples

Check out the Samples directory for full examples.

License

MIT

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

Showing the top 5 NuGet packages that depend on Muonroi.Data.Abstractions:

Package Downloads
Muonroi.Data.EntityFrameworkCore

Entity Framework Core infrastructure for Muonroi: MDbContext with audit, soft-delete, multi-tenant filters, and repository base.

Muonroi.AspNetCore

ASP.NET Core integration: auto-CRUD controllers, middleware pipeline, license protection, and Muonroi hosting extensions.

Muonroi.Data.Dapper

Dapper integration for Muonroi: lightweight read-side repository, multi-tenant query filtering, and connection factory.

Muonroi.Mapping.Abstractions

Entity-DTO mapping contracts with template method pattern for schema-divergent multi-tenancy.

Muonroi.Services

Generic EF Core service base with virtual hook methods for schema-divergent multi-tenancy. Core provides CRUD; site overrides hooks. This is an implementation layer (couples to DbContext by design) — not a vendor-neutral contract, hence not an .Abstractions assembly.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.2 490 8/26/2026
2.0.1 396 8/26/2026
2.0.0 452 8/14/2026