C# 클래스 WebApplications.Testing.Data.ColumnDefinition

파일 보기 프로젝트 열기: webappsuk/CoreLibraries

공개 프로퍼티들

프로퍼티 타입 설명
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