Skip to content

PgEnumLabelAttribute

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Assigns an exact, case-sensitive PostgreSQL label to a PgEnum member.

[AttributeUsage(AttributeTargets.Field, Inherited = false)]
public sealed class PgEnumLabelAttribute : Attribute

Specifies a label of at most 63 UTF-8 bytes, including an empty label.

Inheritance: object, Attribute

Assigns an exact, case-sensitive PostgreSQL label to a PgEnum member.

public PgEnumLabelAttribute(string label)

Parameters:

label — string

The label, without zero characters.

Specifies a label of at most 63 UTF-8 bytes, including an empty label.

Gets the exact PostgreSQL label.

public string Label { get; }

Value: string