/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Npgsql/PostgresTypes/PostgresEnumType.cs
33 строки
927 B
Nino Floris
Remove obsolete UTF-8 BOMs (#6542)
13 апр 2026, 17:13
Не верифицирован
13 апр 2026, 17:13
5225216
Код
Авторство
О чём код?
using System.Collections.Generic; using Npgsql.Internal.Postgres; namespace Npgsql.PostgresTypes; /// <summary> /// Represents a PostgreSQL enum data type. /// </summary> /// <remarks> /// See https://www.postgresql.org/docs/current/static/datatype-enum.html. /// </remarks> public class PostgresEnumType : PostgresType { /// <summary> /// The enum's fields. /// </summary> public IReadOnlyList<string> Labels => MutableLabels; internal List<string> MutableLabels { get; } = []; /// <summary> /// Constructs a representation of a PostgreSQL enum data type. /// </summary> protected internal PostgresEnumType(string ns, string name, uint oid) : base(ns, name, oid) {} /// <summary> /// Constructs a representation of a PostgreSQL enum data type. /// </summary> internal PostgresEnumType(DataTypeName dataTypeName, Oid oid) : base(dataTypeName, oid) {} }