Interface IDataItem
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
DefaultValue
Gets the default value of the data item.
object DefaultValue { get; }
Property Value
IsRequired
Gets a value indicating whether the data item is nullable.
bool IsRequired { get; }
Property Value
NativeType
Gets the native type of the data item.
string NativeType { get; }
Property Value
Precision
Gets the decimal precision of the data item.
byte Precision { get; }
Property Value
Scale
Gets the decimal scale of the data item.
byte Scale { get; }
Property Value
Size
Gets the size (or character length) of the data item.
short Size { get; }
Property Value
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
itemIDataItemThe data item for which the type name needs to be generated.
nativeboolDetermines 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.