Interface IDataItem

Namespace
DbExport.Schema
Assembly
DbExport.Api.dll

Represents a data item that encapsulates schema-related properties and metadata for a database column or type definition.

public interface IDataItem

Properties

ColumnType

Gets the name of the data item.

ColumnType ColumnType { get; }

Property Value

ColumnType

DefaultValue

Gets the default value of the data item.

object DefaultValue { get; }

Property Value

object

IsRequired

Gets a value indicating whether the data item is nullable.

bool IsRequired { get; }

Property Value

bool

NativeType

Gets the native type of the data item.

string NativeType { get; }

Property Value

string

Precision

Gets the decimal precision of the data item.

byte Precision { get; }

Property Value

byte

Scale

Gets the decimal scale of the data item.

byte Scale { get; }

Property Value

byte

Size

Gets the size (or character length) of the data item.

short Size { get; }

Property Value

short

Methods

GetFullTypeName(IDataItem, bool)

Generates the full type name representation for the provided data item.

public static string GetFullTypeName(IDataItem item, bool native = true)

Parameters

item IDataItem

The data item for which the type name needs to be generated.

native bool

Determines whether to use the native database type or map to a generic type representation. Defaults to true.

Returns

string

The full type name, including size, precision, and scale if applicable.