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.
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
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].
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