PgConvertibleAttribute
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Requires a type argument, or each typeof type passed to a Type parameter, to have a PostgreSQL
conversion. The compiler reports a closed type without one, such as ulong, as error ANKUS541.
[AttributeUsage(AttributeTargets.Parameter|AttributeTargets.GenericParameter, Inherited = false)]public sealed class PgConvertibleAttribute : AttributeSPI parameters and results, datum reads and writes, and function arguments use this contract. A type argument of PgRange<T> or the PgRange factory must instead be a supported range bound, and ANKUS542 reports one that is not. Apply the attribute to a helper’s own type parameter to check its callers the same way. Open type parameters, object, interfaces and base classes of mapped types resolve their conversion at run time.
Inheritance: object, Attribute
Constructors
Section titled “Constructors”PgConvertibleAttribute()
Section titled “PgConvertibleAttribute()”public PgConvertibleAttribute()