PgSqlTypeProviderAttribute
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Declares the SQL block that supplies a catalog type for raw or composite bindings, or an owned mapped scalar or range identity.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]public sealed class PgSqlTypeProviderAttribute : AttributeAdds installation dependencies without parsing SQL or executing converters. A managed-type provider selects its referenced datum mapping for static registration. A PgRange<T> provider completes the declared range after its owned scalar bound provider. The block may declare a shell type when its completion is ordered separately.
Inheritance: object, Attribute
Constructors
Section titled “Constructors”PgSqlTypeProviderAttribute(string, string)
Section titled “PgSqlTypeProviderAttribute(string, string)”Declares the SQL block that supplies a catalog type for raw or composite bindings, or an owned mapped scalar or range identity.
public PgSqlTypeProviderAttribute(string sqlId, string name)Parameters:
sqlId — string
The dependency identifier of a PgSql or PgSqlFile block.
name — string
The exact, unquoted catalog type name, without a schema prefix.
Adds installation dependencies without parsing SQL or executing converters. A managed-type provider selects its referenced datum mapping for static registration. A PgRange<T> provider completes the declared range after its owned scalar bound provider. The block may declare a shell type when its completion is ordered separately.
PgSqlTypeProviderAttribute(string, Type)
Section titled “PgSqlTypeProviderAttribute(string, Type)”Declares the SQL provider for one extension-owned managed datum mapping.
public PgSqlTypeProviderAttribute(string sqlId, Type managedType)Parameters:
sqlId — string
The dependency identifier of a PgSql or PgSqlFile block.
managedType — Type
The closed type carrying PgDatumType, or its PgRange<T> identity declared by PgRangeType.
Properties
Section titled “Properties”ManagedType
Section titled “ManagedType”Gets the exact managed mapping identity, or null for a catalog-name provider.
public Type? ManagedType { get; }Value: Type
Gets the exact catalog name of the supplied type or array element, or null for a managed-type provider.
public string? Name { get; }Value: string
Schema
Section titled “Schema”Gets or sets the fixed schema for the catalog-name overload. Null matches only bindings that omit their schema. A managed-type provider uses its mapping’s schema and rejects an explicitly assigned Schema. A fixed owned schema prevents extension schema relocation.
public string? Schema { get; set; }Value: string
Gets the dependency identifier of the supplying SQL block.
public string SqlId { get; }Value: string