C# 클래스 CRL.Attribute.FieldAttribute

상속: System.Attribute
파일 보기 프로젝트 열기: hubro-xx/CRL2 1 사용 예제들

공개 프로퍼티들

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

프로퍼티 타입 설명
GetTableFieldFormat string
GetValue object
SetFieldQueryScript void
SetPropertyInfo void
SetValue void

공개 메소드들

메소드 설명
Clone ( ) : FieldAttribute
ToString ( ) : string

비공개 메소드들

메소드 설명
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

设置对象属性值

메소드 상세

Clone() 공개 메소드

public Clone ( ) : FieldAttribute
리턴 FieldAttribute

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

ColumnType 공개적으로 프로퍼티

自定义数据库字段类型,如 varchar(50)
public string ColumnType
리턴 string

Constraint 공개적으로 프로퍼티

子表查询附加条件 如:CategoryCode=1
public string Constraint
리턴 string

ConstraintField 공개적으로 프로퍼티

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

ConstraintResultField 공개적으로 프로퍼티

关联表要取出的字段 只是字段时使用
public string ConstraintResultField
리턴 string

ConstraintType 공개적으로 프로퍼티

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

DefaultValue 공개적으로 프로퍼티

默认值
public string DefaultValue
리턴 string

FieldIndexType 공개적으로 프로퍼티

索引类型
public FieldIndexType FieldIndexType
리턴 FieldIndexType

Length 공개적으로 프로퍼티

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

MappingField 공개적으로 프로퍼티

是否映射该字段 为false时则不参与查询
public bool MappingField
리턴 bool

NotNull 공개적으로 프로퍼티

是否为空
public bool NotNull
리턴 bool

VirtualField 공개적으로 프로퍼티

自动转换虚拟字段 如year(addtime)
public string VirtualField
리턴 string