Skip to content

PgBeforeAttribute

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Orders a generated SQL declaration before another declaration identified by its managed type or method.

[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public sealed class PgBeforeAttribute : Attribute

Inheritance: object, Attribute

Orders a generated SQL declaration before another declaration identified by its managed type or method.

public PgBeforeAttribute(Type declaringType, string? memberName = null)

Parameters:

declaringType — Type

The type declaring the referenced SQL object or method.

memberName — string

The referenced method name, normally supplied with nameof; null selects the type’s SQL declaration.

Gets or sets the dependency ID of the declaration being ordered. Required on assembly attributes; otherwise omitted to select the attributed type or method’s primary SQL declaration.

public string? DeclarationId { get; set; }

Value: string

Gets the type declaring the referenced SQL object or method.

public Type DeclaringType { get; }

Value: Type

Gets the referenced method name, or null for the type’s SQL declaration.

public string? MemberName { get; }

Value: string

Gets or sets exact managed parameter types to select one overloaded method. Null requires an unambiguous method name; an empty array selects a parameterless method.

public Type[]? ParameterTypes { get; set; }

Value: Type[]