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.
- Inheritance
-
Column
Info
- Inherited Members
Constructors
ColumnInfo(string, string, bool, string, string, string)
Initializes a new instance of the Column
public ColumnInfo(string name, string columnType, bool allowNull, string size, string precision, string scale)
Parameters
name
stringThe name.
columnType
stringType of the column.
allowNull
boolif set to
true
[allow null].size
stringThe size.
precision
stringThe precision.
scale
stringThe scale.
Properties
AllowDBNull
Gets or sets a value indicating whether [allow database null].
Property Value
- bool
true
if [allow database null]; otherwise,false
.
ColumnName
Gets or sets the name of the column.
Property Value
- string
The name of the column.
ColumnSize
Gets or sets the size of the column.
Property Value
- string
The size of the column.
DataType
Gets or sets the type of the data.
Property Value
- string
The type of the data.
NumericPrecision
Gets or sets the numeric precision.
Property Value
- string
The numeric precision.
NumericScale
Gets or sets the numeric scale.
Property Value
- string
The numeric scale.
Methods
GetAddColumnCommand()
Gets the command for adding a column.
Returns
- Command
Builder command