Sparkdo.FeatureManagement.EntityFrameworkCore 1.0.1

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

Sparkdo 功能管理 Entity Framework Core 集成

简介

Sparkdo 功能管理 Entity Framework Core 集成层提供了功能管理模块与 Entity Framework Core 的集成实现,包括数据库上下文、实体配置和仓储实现。

主要组件

FeatureManagementDbContext

功能管理数据库上下文,继承自 SparkdoDbContextBase,包含以下DbSet:

  • FeatureGroups:功能组定义记录
  • Features:功能定义记录
  • FeatureValues:功能值记录

仓储实现

  • EFCoreFeatureDefinitionRecordRepository:功能定义记录仓储实现
  • EFCoreFeatureGroupDefinitionRecordRepository:功能组定义记录仓储实现
  • EFCoreFeatureValueRepository:功能值仓储实现

实体配置

通过 FeatureManagementDbContextModelCreatingExtensions 扩展方法配置实体映射关系。

数据库表结构

FeatureGroups 表

存储功能组定义信息:

  • Id:唯一标识
  • Name:组名称
  • DisplayName:显示名称

Features 表

存储功能定义信息:

  • Id:唯一标识
  • GroupName:所属组名称
  • Name:功能名称
  • ParentName:父级功能名称
  • DisplayName:显示名称
  • Description:描述
  • DefaultValue:默认值
  • IsVisibleToClients:是否对客户端可见
  • IsAvailableToHost:是否对主机可用
  • AllowedProviders:允许的提供者
  • ValueType:值类型

FeatureValues 表

存储功能值信息:

  • Id:唯一标识
  • Name:功能名称
  • Value:功能值
  • ProviderName:提供者名称
  • ProviderKey:提供者键值
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

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
1.0.2-preview.1 138 12/4/2025
1.0.1 183 11/27/2025
1.0.0 170 11/25/2025