Sparkdo.FeatureManagement.EntityFrameworkCore
1.0.1
There is a newer prerelease version of this package available.
See the version list below for details.
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" />
<PackageReference Include="Sparkdo.FeatureManagement.EntityFrameworkCore" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Sparkdo.FeatureManagement.EntityFrameworkCore&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net10.0
- JetBrains.Annotations (>= 2025.2.2)
- Microsoft.EntityFrameworkCore (>= 10.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.0)
- Microsoft.Extensions.Caching.Memory (>= 10.0.0)
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.Configuration.CommandLine (>= 10.0.0)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.0)
- Microsoft.Extensions.Configuration.FileExtensions (>= 10.0.0)
- Microsoft.Extensions.Configuration.Json (>= 10.0.0)
- Microsoft.Extensions.Configuration.UserSecrets (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.DependencyModel (>= 10.0.0)
- Microsoft.Extensions.FileProviders.Composite (>= 10.0.0)
- Microsoft.Extensions.FileProviders.Embedded (>= 10.0.0)
- Microsoft.Extensions.FileProviders.Physical (>= 10.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Localization (>= 10.0.0)
- Microsoft.Extensions.Logging (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Options (>= 10.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.0)
- Nito.AsyncEx.Context (>= 5.1.2)
- Polly (>= 8.6.4)
- Sparkdo.EntityFrameworkCore (>= 1.0.1)
- Sparkdo.FeatureManagement.Domain (>= 1.0.1)
- System.Linq.Dynamic.Core (>= 1.7.0)
- TimeZoneConverter (>= 7.2.0)
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 |