C# Класс WebApplications.Testing.Data.ColumnDefinition

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DbType DbType
DefaultValue object
Fill bool
FixedLength int
IsIsNullable bool
SqlDbType SqlDbType

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
ColumnDefinition ( [ name, DbType dbType, int length = -1, bool fill = false, bool isNullable = true, [ defaultValue = null ) : System

Initializes a new instance of the ColumnDefinition class.

ColumnDefinition ( [ name, SqlDbType sqlDbType, int length = -1, bool fill = false, bool isNullable = true, [ defaultValue = null ) : System

Initializes a new instance of the ColumnDefinition class.

GetRandomValue ( double nullProbability = 0.0 ) : object

Gets the random value.

ToString ( ) : string
Validate ( object value, object &sqlValue ) : bool

Validates the specified value, to see if it is valid for this column.

Описание методов

ColumnDefinition() публичный Метод

Initializes a new instance of the ColumnDefinition class.
public ColumnDefinition ( [ name, DbType dbType, int length = -1, bool fill = false, bool isNullable = true, [ defaultValue = null ) : System
name [ The name.
dbType DbType The columns type.
length int The length (if fixed length).
fill bool if set to expects the column to be full (only appropriate for fixed length columns).
isNullable bool if set to the column is nullable.
defaultValue [ The default value (required if column is not nullable).
Результат System

ColumnDefinition() публичный Метод

Initializes a new instance of the ColumnDefinition class.
public ColumnDefinition ( [ name, SqlDbType sqlDbType, int length = -1, bool fill = false, bool isNullable = true, [ defaultValue = null ) : System
name [ The name.
sqlDbType SqlDbType The columns type.
length int The length (if fixed length).
fill bool if set to expects the column to be full (only appropriate for fixed length columns).
isNullable bool if set to the column is nullable.
defaultValue [ The default value (required if column is not nullable).
Результат System

GetRandomValue() публичный Метод

Gets the random value.
public GetRandomValue ( double nullProbability = 0.0 ) : object
nullProbability double The probability of a column's value being set to SQL null (0.0 for no nulls) [Defaults to 0.0 = 0%].
Результат object

ToString() публичный Метод

public ToString ( ) : string
Результат string

Validate() публичный Метод

Validates the specified value, to see if it is valid for this column.
public Validate ( object value, object &sqlValue ) : bool
value object The value.
sqlValue object The SQL value.
Результат bool

Описание свойств

DbType публичное свойство

The DbType.
public DbType DbType
Результат DbType

DefaultValue публичное свойство

The columns default value.
public object DefaultValue
Результат object

Fill публичное свойство

Whether column should be full.
If this is set to then randomly filled columns will be filled, and explicitly set values must match the length; otherwise the length indicates a maximum.
public bool Fill
Результат bool

FixedLength публичное свойство

The fixed length for the type (-1 indicates variable length - i.e. 'var' types).
public int FixedLength
Результат int

IsIsNullable публичное свойство

Whether the column is nullable.
public bool IsIsNullable
Результат bool

SqlDbType публичное свойство

The SqlDbType.
public SqlDbType SqlDbType
Результат SqlDbType