VOOZH about

URL: https://deepwiki.com/npgsql/efcore.pg/8-glossary

⇱ Glossary | npgsql/efcore.pg | DeepWiki


Loading...
Menu

Glossary

This glossary defines codebase-specific terms, jargon, and domain concepts used within the Npgsql Entity Framework Core provider.

EF Core Provider Concepts

Type Mapping

The system responsible for bridging .NET CLR types and PostgreSQL database types.

SQL Generation

The process of turning an EF Core SelectExpression or MigrationOperation into a PostgreSQL-compatible SQL string.

Scaffolding (Reverse Engineering)

The process of reading an existing PostgreSQL database schema and generating EF Core model code.


PostgreSQL-Specific Terminology

TermDefinitionCode Reference
JSONBBinary-stored JSON format in PostgreSQL. Optimized for indexing and querying.NpgsqlJsonTypeMapping src/EFCore.PG/Storage/Internal/Mapping/NpgsqlJsonTypeMapping.cs1-10
Search VectorA tsvector type used for Full-Text Search.NpgsqlTsVector test/EFCore.PG.FunctionalTests/BuiltInDataTypesNpgsqlTest.cs116
Identity ColumnThe modern SQL-standard way to handle auto-incrementing columns (PostgreSQL 10+).NpgsqlValueGenerationStrategy.IdentityByDefaultColumn src/EFCore.PG/Migrations/NpgsqlMigrationsSqlGenerator.cs84-85
Serial ColumnThe legacy PostgreSQL auto-incrementing column type (e.g., SERIAL4).NpgsqlValueGenerationStrategy.SerialColumn src/EFCore.PG/Migrations/NpgsqlMigrationsSqlGenerator.cs86
Unlogged TableA table that is not written to the Write-Ahead Log (WAL), making it faster but not crash-safe.NpgsqlAnnotationNames.UnloggedTable src/EFCore.PG/Migrations/NpgsqlMigrationsSqlGenerator.cs175-176

Code Entity Mapping

The following diagrams bridge natural language concepts to the specific classes and methods implementing them in the provider.

Type Mapping Resolution Flow

This diagram shows how a CLR type (e.g., string) is resolved to a PostgreSQL type (e.g., text or citext).


Sources: src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs57 src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs81-86

Query Translation Pipeline

This diagram tracks how a LINQ expression is converted into PostgreSQL-specific SQL.


Sources: src/EFCore.PG/Query/Internal/NpgsqlSqlTranslatingExpressionVisitor.cs20-24 src/EFCore.PG/Query/NpgsqlSqlExpressionFactory.cs15-16 src/EFCore.PG/Query/Internal/NpgsqlQuerySqlGenerator.cs51-70


Internal Abbreviations & Jargon

Sources: