/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
test-logs
src/Npgsql/Internal/Postgres/Field.cs
14 строк
525 B
Nino Floris
Centralization of mapping resolution and binding logic (#6559)
03 май 2026, 19:07
Не верифицирован
03 май 2026, 19:07
6042bed
Код
Авторство
О чём код?
using System.Diagnostics.CodeAnalysis; namespace Npgsql.Internal.Postgres; /// Base field type shared between tables and composites. [Experimental(NpgsqlDiagnostics.ConvertersExperimental)] public readonly struct Field(string name, PgTypeId pgTypeId, int typeModifier) { public string Name { get; init; } = name; public PgTypeId PgTypeId { get; init; } = pgTypeId; public int TypeModifier { get; init; } = typeModifier; public static Field CreateUnspecified(PgTypeId pgTypeId) => new("?", pgTypeId, -1); }