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 : AttributeInheritance: object, Attribute
Constructors
Section titled “Constructors”PgBeforeAttribute(Type, string?)
Section titled “PgBeforeAttribute(Type, string?)”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.
Properties
Section titled “Properties”DeclarationId
Section titled “DeclarationId”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
DeclaringType
Section titled “DeclaringType”Gets the type declaring the referenced SQL object or method.
public Type DeclaringType { get; }Value: Type
MemberName
Section titled “MemberName”Gets the referenced method name, or null for the type’s SQL declaration.
public string? MemberName { get; }Value: string
ParameterTypes
Section titled “ParameterTypes”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[]