Amazon DynamoDB · Types · Preloading the schema
ArxColumnDefinition
Definition
- Namespace
ARX.SDK.Services- Package
ARX.SDK
public sealed class ArxColumnDefinitionA 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
int8orvarcharin PostgreSQL,nvarcharin 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.
Usage
A line from a verified sample; the full, runnable code is on its page.
.Column("lead", new ArxColumnDefinition("full_name", typeof(string), "S", true))Set up the service from DynamoDB's tables, scenario 1
Used in: