Pure.RelationalSchema.RichRelationalModel.EFCore.Models
0.1.0-preview.0.2.0
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
<PackageReference Include="Pure.RelationalSchema.RichRelationalModel.EFCore.Models" Version="0.1.0-preview.0.2.0" />
<PackageVersion Include="Pure.RelationalSchema.RichRelationalModel.EFCore.Models" Version="0.1.0-preview.0.2.0" />
<PackageReference Include="Pure.RelationalSchema.RichRelationalModel.EFCore.Models" />
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"
#:package Pure.RelationalSchema.RichRelationalModel.EFCore.Models@0.1.0-preview.0.2.0
#addin nuget:?package=Pure.RelationalSchema.RichRelationalModel.EFCore.Models&version=0.1.0-preview.0.2.0&prerelease
#tool nuget:?package=Pure.RelationalSchema.RichRelationalModel.EFCore.Models&version=0.1.0-preview.0.2.0&prerelease
Pure.RelationalSchema.RichRelationalModel.EFCore.Models
Entity Framework Core models implementing the Rich Relational Model abstractions for database schema introspection within the Pure ecosystem.
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 = trueand 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 | Versions 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. |
-
net10.0
- Pure.RelationalSchema.RichRelationalModel.Abstractions (>= 0.1.0-preview.0.2.0)
-
net11.0
- Pure.RelationalSchema.RichRelationalModel.Abstractions (>= 0.1.0-preview.0.2.0)
-
net7.0
- Pure.RelationalSchema.RichRelationalModel.Abstractions (>= 0.1.0-preview.0.2.0)
-
net8.0
- Pure.RelationalSchema.RichRelationalModel.Abstractions (>= 0.1.0-preview.0.2.0)
-
net9.0
- Pure.RelationalSchema.RichRelationalModel.Abstractions (>= 0.1.0-preview.0.2.0)
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 |