/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Npgsql/NpgsqlTypes/PgNameAttribute.cs
29 строк
932 B
Nino Floris
Remove obsolete UTF-8 BOMs (#6542)
13 апр 2026, 17:13
Не верифицирован
13 апр 2026, 17:13
5225216
Код
Авторство
О чём код?
using System; // ReSharper disable once CheckNamespace namespace NpgsqlTypes; /// <summary> /// Indicates that this property or field corresponds to a PostgreSQL field with the specified name /// </summary> [AttributeUsage( AttributeTargets.Enum | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter)] public class PgNameAttribute : Attribute { /// <summary> /// The name of PostgreSQL field that corresponds to this CLR property or field /// </summary> public string PgName { get; } /// <summary> /// Indicates that this property or field corresponds to a PostgreSQL field with the specified name /// </summary> /// <param name="pgName">The name of PostgreSQL field that corresponds to this CLR property or field</param> public PgNameAttribute(string pgName) => PgName = pgName; }