Pure.RelationalSchema.RichRelationalModel.EFCore.Models 0.1.0-preview.0.2.0

This is a prerelease version of Pure.RelationalSchema.RichRelationalModel.EFCore.Models.
dotnet add package Pure.RelationalSchema.RichRelationalModel.EFCore.Models --version 0.1.0-preview.0.2.0
                    
NuGet\Install-Package Pure.RelationalSchema.RichRelationalModel.EFCore.Models -Version 0.1.0-preview.0.2.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" Version="0.1.0-preview.0.2.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" Version="0.1.0-preview.0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Pure.RelationalSchema.RichRelationalModel.EFCore.Models" />
                    
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 --version 0.1.0-preview.0.2.0
                    
#r "nuget: Pure.RelationalSchema.RichRelationalModel.EFCore.Models, 0.1.0-preview.0.2.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@0.1.0-preview.0.2.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&version=0.1.0-preview.0.2.0&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Pure.RelationalSchema.RichRelationalModel.EFCore.Models&version=0.1.0-preview.0.2.0&prerelease
                    
Install as a Cake Tool

Pure.RelationalSchema.RichRelationalModel.EFCore.Models

Entity Framework Core models implementing the Rich Relational Model abstractions for database schema introspection within the Pure ecosystem.

Build & Test Publish NuGet NuGet License: MIT

Overview

Pure.RelationalSchema.RichRelationalModel.EFCore.Models provides concrete sealed record implementations of the Rich Relational Model interfaces defined in Pure.RelationalSchema.RichRelationalModel.Abstractions. Each record exposes both the abstract contract properties required by the interface and typed EFCore navigation properties (*Navigation) for use with Entity Framework Core's change tracker and query materialisation.

Models

Type Implements Description
SchemaEFCoreModel ISchemaRichRelationalModel A database schema containing tables and foreign keys. Navigation: TablesNavigation, ForeignKeysNavigation.
TableEFCoreModel ITableRichRelationalModel A table within a schema, containing columns and indexes. Navigation: ColumnsNavigation, IndexesNavigation.
ColumnEFCoreModel IColumnRichRelationalModel A column with a name, a foreign key to its parent table, and a type reference. Navigation: TypeNavigation.
ForeignKeyEFCoreModel IForeignKeyRichRelationalModel A foreign key relationship with referencing and referenced tables and their respective columns. Navigation: ReferencingTableNavigation, ReferencedTableNavigation, ReferencingColumnsNavigation, ReferencedColumnsNavigation.
IndexEFCoreModel IIndexRichRelationalModel A database index with a uniqueness flag and the columns it covers. Navigation: ColumnsNavigation.
ColumnTypeEFCoreModel IColumnTypeRichRelationalModel A column data type identified by an IGuid and named with an IString.

All records are in the Pure.RelationalSchema.RichRelationalModel.EFCore.Models namespace.

Design Principles

  • Dual surface — each record satisfies the abstract interface contract (used by domain code) and exposes strongly-typed navigation properties (used by EFCore).
  • Immutable — all properties are init-only; no setters are exposed.
  • AOT-compatible — the library is marked IsAotCompatible = true and safe for NativeAOT and trimming scenarios.

Dependencies

  • Pure.RelationalSchema.RichRelationalModel.Abstractions — interfaces that every model in this package implements (ISchemaRichRelationalModel, ITableRichRelationalModel, IColumnRichRelationalModel, IForeignKeyRichRelationalModel, IIndexRichRelationalModel, IColumnTypeRichRelationalModel).

Target Frameworks

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

Installation

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

Usage

// Construct a column type and column, then wire them into a table inside a schema.
var columnType = new ColumnTypeEFCoreModel(id: someGuid, name: someName);

var column = new ColumnEFCoreModel(
    id: columnGuid,
    tableId: tableGuid,
    name: columnName,
    typeId: columnType.Id,
    typeNavigation: columnType);

var table = new TableEFCoreModel(
    id: tableGuid,
    schemaId: schemaGuid,
    name: tableName,
    columnsNavigation: [column],
    indexesNavigation: []);

var schema = new SchemaEFCoreModel(
    id: schemaGuid,
    name: schemaName,
    tablesNavigation: [table],
    foreignKeysNavigation: []);

// The abstract interface is available anywhere ISchemaRichRelationalModel is expected.
ISchemaRichRelationalModel richModel = schema;
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:

Package Downloads
Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.0.2.0 103 11/11/2026
0.1.0-preview.0.1.0 2,244 4/30/2026