MySQL · Types · Preloading the schema

ArxColumnDefinition

Definition

Namespace
ARX.SDK.Services
Package
ARX.SDK
C#
public sealed class ArxColumnDefinition

A column a preload found: its name, the .NET type ARX reads it as, the database's type and traits.

Constructor

  • ArxColumnDefinition(string name, Type type, string databaseType, bool isNullable, ArxColumnTraits traits = ArxColumnTraits.None)

    A column definition, as a preload creates it (or by hand, for a table a preload can't read).

    Parameter Type Description
    namestringThe column name.
    typeTypeThe .NET type ARX reads the column as.
    databaseTypestringThe database's type name (for an array, its element type).
    isNullableboolWhether the column accepts NULL.
    traitsArxColumnTraits= ArxColumnTraits.NoneWhat the database type is beyond its .NET type: an enum, a composite, an array, JSON, a default.

Properties

  • string Name { get; }

    The column name.

  • Type Type { get; }

    The .NET type values of this column read back as (Retrieve's value mapping), and are expected as.

  • string DatabaseType { get; }

    The database's type name, as it names it (for example int8 or varchar in PostgreSQL, nvarchar in SQL Server; for an array, its element's).

  • bool IsNullable { get; }

    Whether the column accepts NULL.

  • ArxColumnTraits Traits { get; }

    What the database type is beyond its .NET type: an enum, a composite, an array, JSON, a column with a default.