Επεξεργασία

Κοινή χρήση μέσω


DbColumn Class

Definition

Represents a column within a data source.

public ref class DbColumn abstract
public abstract class DbColumn
type DbColumn = class
Public MustInherit Class DbColumn
Inheritance
DbColumn

Constructors

DbColumn()

Initializes a new instance of the DbColumn class.

Properties

AllowDBNull

Gets a nullable boolean value that indicates whether DBNull values are allowed in this column, or returns null if no value is set. Can be set to either true or false indicating whether DBNull values are allowed in this column, or null (Nothing in Visual Basic) when overridden in a derived class.

BaseCatalogName

Gets the catalog name associated with the data source; otherwise, null if no value is set. Can be set to either the catalog name or null when overridden in a derived class.

BaseColumnName

Gets the base column name; otherwise, null if no value is set. Can be set to either the column name or null when overridden in a derived class.

BaseSchemaName

Gets the schema name associated with the data source; otherwise, null if no value is set. Can be set to either the schema name or null when overridden in a derived class.

BaseServerName

Gets the server name associated with the column; otherwise, null if no value is set. Can be set to either the server name or null when overridden in a derived class.

BaseTableName

Gets the table name in the schema; otherwise, null if no value is set. Can be set to either the table name or null when overridden in a derived class.

ColumnName

Gets the name of the column. Can be set to the column name when overridden in a derived class.

ColumnOrdinal

Gets the column position (ordinal) in the datasource row; otherwise, null if no value is set. Can be set to either an int32 value to specify the column position or null when overridden in a derived class.

ColumnSize

Gets the column size; otherwise, null if no value is set. Can be set to either an int32 value to specify the column size or null when overridden in a derived class.

DataType

Gets the type of data stored in the column. Can be set to a Type object that represents the type of data in the column when overridden in a derived class.

DataTypeName

Gets the name of the data type; otherwise, null if no value is set. Can be set to either the data type name or null when overridden in a derived class.

IsAliased

Gets a nullable boolean value that indicates whether this column is aliased, or returns null if no value is set. Can be set to either true or false indicating whether this column is aliased, or null (Nothing in Visual Basic) when overridden in a derived class.

IsAutoIncrement

Gets a nullable boolean value that indicates whether values in this column are automatically incremented, or returns null if no value is set. Can be set to either true or false indicating whether values in this column are automatically incremented, or null (Nothing in Visual Basic) when overridden in a derived class.

IsExpression

Gets a nullable boolean value that indicates whether this column is an expression, or returns null if no value is set. Can be set to either true or false indicating whether this column is an expression, or null (Nothing in Visual Basic) when overridden in a derived class.

IsHidden

Gets a nullable boolean value that indicates whether this column is hidden, or returns null if no value is set. Can be set to either true or false indicating whether this column is hidden, or null (Nothing in Visual Basic) when overridden in a derived class.

IsIdentity

Gets a nullable boolean value that indicates whether this column is an identity, or returns null if no value is set. Can be set to either true or false indicating whether this column is an identity, or null (Nothing in Visual Basic) when overridden in a derived class.

IsKey

Gets a nullable boolean value that indicates whether this column is a key, or returns null if no value is set. Can be set to either true or false indicating whether this column is a key, or null (Nothing in Visual Basic) when overridden in a derived class.

IsLong

Gets a nullable boolean value that indicates whether this column contains long data, or returns null if no value is set. Can be set to either true or false indicating whether this column contains long data, or null (Nothing in Visual Basic) when overridden in a derived class.

IsReadOnly

Gets a nullable boolean value that indicates whether this column is read-only, or returns null if no value is set. Can be set to either true or false indicating whether this column is read-only, or null (Nothing in Visual Basic) when overridden in a derived class.

IsUnique

Gets a nullable boolean value that indicates whether a unique constraint applies to this column, or returns null if no value is set. Can be set to either true or false indicating whether a unique constraint applies to this column, or null (Nothing in Visual Basic) when overridden in a derived class.

Item[String]

Gets the object based on the column property name.

NumericPrecision

Gets the numeric precision of the column data; otherwise, null if no value is set. Can be set to either an int32 value to specify the numeric precision of the column data or null when overridden in a derived class.

NumericScale

Gets a nullable int32 value that either returns null or the numeric scale of the column data. Can be set to either null or an int32 value for the numeric scale of the column data when overridden in a derived class.

UdtAssemblyQualifiedName

Gets the assembly-qualified name of the Type object that represents the type of data in the column; otherwise, null if no value is set. Can be set to either the assembly-qualified name or null when overridden in a derived class.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to