Table of Contents

Class ColumnInfo

Namespace
Dynamicweb.Data
Assembly
Dynamicweb.Core.dll

This is a lightweight version of the ADO.NET DataRow, with only the minimal needed information required to do alter table. Datarows are used in the schematable of a datatable, to define the columns of the datatable

public class ColumnInfo
Inheritance
ColumnInfo
Inherited Members

Constructors

ColumnInfo(string, string, bool, string, string, string)

Initializes a new instance of the ColumnInfo class, with all possible information needed for a column update independant of datatype.

public ColumnInfo(string name, string columnType, bool allowNull, string size, string precision, string scale)

Parameters

name string

The name.

columnType string

Type of the column.

allowNull bool

if set to true [allow null].

size string

The size.

precision string

The precision.

scale string

The scale.

Properties

AllowDBNull

Gets or sets a value indicating whether [allow database null].

public bool AllowDBNull { get; }

Property Value

bool

true if [allow database null]; otherwise, false.

ColumnName

Gets or sets the name of the column.

public string ColumnName { get; }

Property Value

string

The name of the column.

ColumnSize

Gets or sets the size of the column.

public string ColumnSize { get; }

Property Value

string

The size of the column.

DataType

Gets or sets the type of the data.

public string DataType { get; }

Property Value

string

The type of the data.

NumericPrecision

Gets or sets the numeric precision.

public string NumericPrecision { get; }

Property Value

string

The numeric precision.

NumericScale

Gets or sets the numeric scale.

public string NumericScale { get; }

Property Value

string

The numeric scale.

Methods

GetAddColumnCommand()

Gets the command for adding a column.

public CommandBuilder GetAddColumnCommand()

Returns

CommandBuilder

command

To top