Skip to content

PgGucLabelAttribute

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Selects the PostgreSQL configuration label for a C# enum member without creating a PostgreSQL enum type.

[AttributeUsage(AttributeTargets.Field)]
public sealed class PgGucLabelAttribute : Attribute

Inheritance: object, Attribute

Selects the PostgreSQL configuration label for a C# enum member without creating a PostgreSQL enum type.

public PgGucLabelAttribute(string name)

Parameters:

name — string

The configuration label, compared with PostgreSQL’s case-insensitive ASCII rules.

Gets or sets whether the label remains accepted while omitted from lists of available values.

public bool Hidden { get; set; }

Value: bool

Gets the configuration label.

public string Name { get; }

Value: string