Pure.RelationalSchema.Self.Storage.Projection 0.1.0-preview.6.2.0

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

Pure.RelationalSchema.Self.Storage.Projection

Projects an ISchema into normalized storage rows for the Pure relational schema meta-model.

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

Overview

Pure.RelationalSchema.Self.Storage.Projection takes an ISchema and projects it into a set of storage rows grouped by table. The result is an IEnumerable<IGrouping<ITable, IRow>> that covers every structural element of the schema — column types, columns, tables, indexes, foreign keys, and the join tables between them — ready to be persisted through the Pure.RelationalSchema.Storage layer.

Public API

Type Kind Description
SchemaProjection sealed record Entry point. Wraps an ISchema and enumerates all projection groups.
SchemaEntityProjection sealed record Projects a single ISchema as an IRow into SchemasTable.

Projection groups

SchemaProjection yields one IGrouping<ITable, IRow> per logical table in the self-schema:

Table Contents
ColumnTypesTable Distinct column types across all tables
ColumnsTable All columns, deduplicated by content hash
TablesTable All tables
TablesToColumnsTable Table ↔ column membership
IndexesTable All indexes
IndexesToColumnsTable Index ↔ column membership
TablesToIndexesTable Table ↔ index membership
ForeignKeysTable All foreign keys with referencing/referenced table UUIDs
ForeignKeysToReferencingColumnsTable Foreign key ↔ referencing column
ForeignKeysToReferencedColumnsTable Foreign key ↔ referenced column
SchemasTable The schema itself as a single row
SchemasToTablesTable Schema ↔ table membership
SchemasToForeignKeysTable Schema ↔ foreign key membership

Each entity is identified by a ULID-based UUID cell and deduplicated by a content hash computed over the entity's structural fields.

Design Principles

  • Self-describing — the target tables are defined by Pure.RelationalSchema.Self.Schema, so the meta-model describes itself.
  • Content-addressed — every entity row is keyed by a hex-encoded structural hash; duplicates across tables are collapsed automatically.
  • AOT-compatible — the library carries IsAotCompatible = true and avoids reflection.

Dependencies

Target Frameworks

  • .NET 8
  • .NET 9
  • .NET 10

Installation

dotnet add package Pure.RelationalSchema.Self.Storage.Projection

Usage

ISchema schema = ...; // your ISchema implementation

SchemaProjection projection = new SchemaProjection(schema);

foreach (IGrouping<ITable, IRow> group in projection)
{
    ITable table = group.Key;
    foreach (IRow row in group)
    {
        foreach ((IColumn column, ICell cell) in row.Cells)
        {
            // persist or process each cell
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET 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. 
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.1.0-preview.6.4.0 82 11/11/2026
0.1.0-preview.6.3.1 86 11/5/2026
0.1.0-preview.6.3.0 253 10/23/2026
0.1.0-preview.6.2.0 79 10/22/2026
0.1.0-preview.6.1.0 76 10/22/2026
0.1.0-preview.6.0.5 628 8/6/2026
0.1.0-preview.6.0.4 106 8/4/2026
0.1.0-preview.6.0.2 352 6/25/2026
0.1.0-preview.6.0.1 296 6/7/2026
0.1.0-preview.6.0.0 438 5/28/2026
0.1.0-preview.5.0.2 168 5/20/2026
0.1.0-preview.5.0.1 750 3/16/2026
0.1.0-preview.5.0.0 107 3/16/2026
0.1.0-preview.4.0.0 576 11/15/2025
0.1.0-preview.3.1.0 362 11/10/2025
0.1.0-preview.3.0.0 234 11/4/2025
0.1.0-preview.2.0.0 210 11/3/2025
0.1.0-preview.1.0.1 205 11/3/2025
0.1.0-preview.1.0.0 211 10/30/2025
0.1.0-preview.0.1.0 180 10/24/2025