Headless.Features.Storage.EntityFramework 0.4.14

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

Headless.Features.Storage.EntityFramework

Entity Framework Core storage implementation for feature management.

Problem Solved

Provides persistent storage for feature definitions and values using Entity Framework Core, enabling database-backed feature management with full CRUD support.

Key Features

  • IFeaturesDbContext - DbContext interface for features
  • FeaturesDbContext - Ready-to-use DbContext
  • EF repositories for feature definitions and values
  • Model builder extensions for custom DbContext integration
  • Pooled DbContext factory support

Installation

dotnet add package Headless.Features.Storage.EntityFramework

Quick Start

Using Built-in DbContext

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddFeaturesManagementDbContextStorage(options =>
    options.UseNpgsql(builder.Configuration.GetConnectionString("Features"))
);

Using Custom DbContext

public class AppDbContext : DbContext, IFeaturesDbContext
{
    public DbSet<FeatureDefinitionRecord> FeatureDefinitions => Set<FeatureDefinitionRecord>();
    public DbSet<FeatureGroupDefinitionRecord> FeatureGroupDefinitions => Set<FeatureGroupDefinitionRecord>();
    public DbSet<FeatureValueRecord> FeatureValues => Set<FeatureValueRecord>();

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        modelBuilder.ConfigureFeatureManagement();
    }
}

// Registration
builder.Services.AddFeaturesManagementDbContextStorage<AppDbContext>();

Configuration

No additional configuration required beyond DbContext setup.

Dependencies

  • Headless.Features.Core
  • Microsoft.EntityFrameworkCore

Side Effects

  • Registers IFeatureDefinitionRecordRepository as singleton
  • Registers IFeatureValueRecordRepository as singleton
  • Uses pooled DbContext factory for performance
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
0.4.15 53 5/18/2026
0.4.14 73 5/18/2026