Madoka.Framework.EntityFrameworkCore 1.0.0-preview.2

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

Madoka.Framework

基于 ABP Framework(.NET 10 / ABP 10.5)的多租户分层框架,内置自研 Tailwind Razor Pages 管理 UI。

集成的 ABP 模块

  • Identity(用户/角色)
  • Tenant Management(租户)
  • Feature Management(功能管理)
  • Setting Management(设置管理)
  • Audit Logging(审计日志)
  • Background Jobs(后台任务)
  • Blob Storing (Database)(BLOB 存储)
  • OpenIddict(认证)
  • Permission Management(权限管理)

项目结构

项目 说明
Madoka.Framework.Domain.Shared 常量、本地化资源、错误码
Madoka.Framework.Domain 领域层、领域服务、模块集成
Madoka.Framework.Application.Contracts 应用服务接口、DTO、权限定义
Madoka.Framework.Application 应用服务实现
Madoka.Framework.EntityFrameworkCore EF Core 集成、可继承 DbContext 基类
Madoka.Framework.HttpApi HTTP API(自动 API 控制器)
Madoka.Framework.HttpApi.Client HTTP API 客户端代理
Madoka.Framework.Web MVC / Razor Pages 管理 UI(Razor 类库)

快速开始

使用本框架的项目必须注册自己的 DbContext,继承框架提供的泛型基类即可获得全部模块实体与配置:

public class MyDbContext : MadokaFrameworkDbContext<MyDbContext>
{
    public MyDbContext(DbContextOptions<MyDbContext> options) : base(options)
    {
    }
}

随后在你的 EF Core 模块中注册该 DbContext 并指定迁移程序集,迁移由消费方自行维护。

Product Compatible and additional computed target framework versions.
.NET 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 (1)

Showing the top 1 NuGet packages that depend on Madoka.Framework.EntityFrameworkCore:

Package Downloads
Madoka.Framework.Web

Madoka.Framework MVC / Razor Pages UI module with custom admin pages (audit logs, settings, feature management, background jobs, identity and tenant management) and Tailwind layout.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1.3 52 8/23/2026
1.0.1.2 48 8/21/2026
1.0.1.1 88 8/20/2026
1.0.1 75 8/20/2026
1.0.0-preview.9 47 8/20/2026
1.0.0-preview.8 51 8/20/2026
1.0.0-preview.7 49 8/20/2026
1.0.0-preview.6 61 8/16/2026
1.0.0-preview.5 58 8/16/2026
1.0.0-preview.4 66 8/15/2026
1.0.0-preview.3 58 8/12/2026
1.0.0-preview.2 55 8/12/2026
1.0.0-preview.1 53 8/12/2026