C# Class CRL.IModel

Inheritance: ICloneable
显示文件 Open project: hubro-xx/CRL2

Protected Properties

Property Type Description
lockObj object

Private Properties

Property Type Description
CreateColumn string
GetColumns List
GetIndexScript List
GetModelKey string
GetpPrimaryKeyValue int
SetColumnDbType void
this object

Public Methods

Method Description
CheckColumnExists ( DBExtend helper ) : string

检查对应的字段是否存在,不存在则创建

CheckData ( ) : string

数据校验方法

CheckIndexExists ( DBExtend helper ) : void

检查索引

Clone ( ) : object

创建当前对象的浅表副本

CreateTable ( DBExtend helper, string &message ) : bool

创建表 会检查表是否存在,如果存在则检查字段

CreateTable ( DBExtend helper ) : string

创建表

ToJson ( ) : string

Protected Methods

Method Description
SetChanges ( string name, object value ) : void

表示值被更改了

Private Methods

Method Description
CreateColumn ( DBExtend helper, Attribute item ) : string
GetColumns ( DBAdapter dbAdapter ) : List

获取列

GetIndexScript ( DBExtend helper ) : List
GetModelKey ( ) : string
GetpPrimaryKeyValue ( ) : int
SetColumnDbType ( DBAdapter dbAdapter, Attribute info, string>.Dictionary dic ) : void
this ( string key ) : object

Method Details

CheckColumnExists() public method

检查对应的字段是否存在,不存在则创建
public CheckColumnExists ( DBExtend helper ) : string
helper DBExtend
return string

CheckData() public method

数据校验方法
public CheckData ( ) : string
return string

CheckIndexExists() public method

检查索引
public CheckIndexExists ( DBExtend helper ) : void
helper DBExtend
return void

Clone() public method

创建当前对象的浅表副本
public Clone ( ) : object
return object

CreateTable() public method

创建表 会检查表是否存在,如果存在则检查字段
public CreateTable ( DBExtend helper, string &message ) : bool
helper DBExtend
message string
return bool

CreateTable() public method

创建表
public CreateTable ( DBExtend helper ) : string
helper DBExtend
return string

SetChanges() protected method

表示值被更改了
protected SetChanges ( string name, object value ) : void
name string
value object
return void

ToJson() public method

public ToJson ( ) : string
return string

Property Details

lockObj protected_oe static_oe property

protected static object lockObj
return object