Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations 0.1.0-preview.0.3.0

This is a prerelease version of Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations.
dotnet add package Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations --version 0.1.0-preview.0.3.0
                    
NuGet\Install-Package Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations -Version 0.1.0-preview.0.3.0
                    
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="Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations" Version="0.1.0-preview.0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations" Version="0.1.0-preview.0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations" />
                    
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 Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations --version 0.1.0-preview.0.3.0
                    
#r "nuget: Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations, 0.1.0-preview.0.3.0"
                    
#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 Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations@0.1.0-preview.0.3.0
                    
#: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=Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations&version=0.1.0-preview.0.3.0&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations&version=0.1.0-preview.0.3.0&prerelease
                    
Install as a Cake Tool

Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations

EF Core IEntityTypeConfiguration<T> implementations for the Pure rich relational schema model entities.

.NET build & test Build and Deploy NuGet License: MIT

Overview

Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations provides a set of EF Core type configurations that wire up the relational schema model entities — schemas, tables, columns, column types, indexes, and foreign keys — with their column mappings, key constraints, max lengths, foreign key relationships, and Pure primitive converters/comparers.

Register all six configurations in your DbContext to persist the rich relational schema model via EF Core.

Configurations

Type Entity Description
SchemaConfiguration SchemaEFCoreModel GUID PK (never generated), Name (max 64), one-to-many Tables and ForeignKeys navigations
TableConfiguration TableEFCoreModel GUID PK, Name (max 64), SchemaId FK, one-to-many Columns and Indexes navigations
ColumnConfiguration ColumnEFCoreModel GUID PK, Name (max 64), TableId and TypeId FKs, many-to-one ColumnType navigation
ColumnTypeConfiguration ColumnTypeEFCoreModel GUID PK, Name (max 64, unique index)
IndexConfiguration IndexEFCoreModel GUID PK, IsUnique bool, TableId FK, many-to-many Columns navigation
ForeignKeyConfiguration ForeignKeyEFCoreModel GUID PK, SchemaId/ReferencingTableId/ReferencedTableId FKs, many-to-many referencing and referenced column navigations

All GUID and String properties use converters and value comparers from the Pure primitives ecosystem. IsUnique on IndexConfiguration uses BoolTypeConverter and BoolValueComparer.

Dependencies

Target Frameworks

  • .NET 7
  • .NET 8
  • .NET 9
  • .NET 10
  • .NET 11

Installation

dotnet add package Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations

Usage

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
    modelBuilder.ApplyConfigurationsFromAssembly(
        typeof(SchemaConfiguration).Assembly);
}

Or register each configuration individually:

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
    modelBuilder.ApplyConfiguration(new SchemaConfiguration());
    modelBuilder.ApplyConfiguration(new TableConfiguration());
    modelBuilder.ApplyConfiguration(new ColumnConfiguration());
    modelBuilder.ApplyConfiguration(new ColumnTypeConfiguration());
    modelBuilder.ApplyConfiguration(new IndexConfiguration());
    modelBuilder.ApplyConfiguration(new ForeignKeyConfiguration());
}
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 is compatible.  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 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.  net11.0 is compatible. 
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 Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations:

Package Downloads
Pure.RelationalSchema.RichRelationalModel.EFCore

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.0.3.0 68 11/11/2026
0.1.0-preview.0.2.0 524 10/22/2026
0.1.0-preview.0.1.2 1,218 6/25/2026
0.1.0-preview.0.1.1 211 6/7/2026
0.1.0-preview.0.1.0 500 4/30/2026