C# Class CRL.Attribute.FieldAttribute

Inheritance: System.Attribute
Afficher le fichier Open project: hubro-xx/CRL2 Class Usage Examples

Méthodes publiques

Свойство Type Description
ColumnType string
Constraint string
ConstraintField string
ConstraintResultField string
ConstraintType System.Type
DefaultValue string
FieldIndexType FieldIndexType
Length int
MappingField bool
NotNull bool
VirtualField string

Private Properties

Свойство Type Description
GetTableFieldFormat string
GetValue object
SetFieldQueryScript void
SetPropertyInfo void
SetValue void

Méthodes publiques

Méthode Description
Clone ( ) : FieldAttribute
ToString ( ) : string

Private Methods

Méthode Description
GetTableFieldFormat ( string table, string fileld ) : string

按表名格式化字段名

GetValue ( object obj ) : object

获取对象属性值

SetFieldQueryScript ( string prefix, bool usePrefix, bool useAliasesName ) : void

设置字段查询语法

SetPropertyInfo ( PropertyInfo _propertyInfo ) : void

设置对象属性值

SetValue ( object obj, object value ) : void

设置对象属性值

Method Details

Clone() public méthode

public Clone ( ) : FieldAttribute
Résultat FieldAttribute

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

ColumnType public_oe property

自定义数据库字段类型,如 varchar(50)
public string ColumnType
Résultat string

Constraint public_oe property

子表查询附加条件 如:CategoryCode=1
public string Constraint
Résultat string

ConstraintField public_oe property

约束字段 格式:$CategoryCode[当前类型字段]=SequenceCode[关联表字段]
public string ConstraintField
Résultat string

ConstraintResultField public_oe property

关联表要取出的字段 只是字段时使用
public string ConstraintResultField
Résultat string

ConstraintType public_oe property

关联表类型 只是字段时使用 typeof(ClassA)
public Type,System ConstraintType
Résultat System.Type

DefaultValue public_oe property

默认值
public string DefaultValue
Résultat string

FieldIndexType public_oe property

索引类型
public FieldIndexType FieldIndexType
Résultat FieldIndexType

Length public_oe property

长度,超过3000字段类型将会设为ntext 若是需要指定长度,请赋值 默认30
public int Length
Résultat int

MappingField public_oe property

是否映射该字段 为false时则不参与查询
public bool MappingField
Résultat bool

NotNull public_oe property

是否为空
public bool NotNull
Résultat bool

VirtualField public_oe property

自动转换虚拟字段 如year(addtime)
public string VirtualField
Résultat string