C# Class Rsdn.Janus.SchemaHelper

显示文件 Open project: rsdn/janus

Public Methods

Method Description
ColumnsList ( this table, string>.Func nameDecorator ) : string
GetColumn ( this table, string cname ) : Rsdn.Janus.TableColumnSchema
GetDiffColumnsCount ( this table1, TableSchema table2 ) : int
GetIndex ( this table, string name ) : IndexSchema
GetKey ( this table, ConstraintType keyType, string columnList ) : KeySchema
GetKey ( this table, ConstraintType keyType, string relTable, string relColumns ) : KeySchema
GetKey ( this table, string keyName ) : KeySchema
GetKey2 ( this table, ConstraintType keyType, string relTable, string relColumns ) : KeySchema
GetTable ( this schema, string tableName ) : TableSchema
IsColumnExist ( this table, string cname ) : bool
IsExactColumn ( this table, Rsdn.Janus.TableColumnSchema inputColumn ) : bool
IsGeneratorExist ( this schema, string gname ) : bool
IsIndexExist ( this table, string name ) : bool
IsKeyExist ( this table, ConstraintType keyType, string columnList ) : bool
IsKeyExist ( this table, string keyName ) : bool
IsKeyExist ( this table, string keyName, ConstraintType keyType ) : bool
IsTableExist ( this schema, string tableName ) : bool
KeyPrimary ( this table ) : KeySchema
SafeRunCommand ( string cmdText, System.Action runner ) : void

Method Details

ColumnsList() public static method

public static ColumnsList ( this table, string>.Func nameDecorator ) : string
table this
nameDecorator string>.Func
return string

GetColumn() public static method

public static GetColumn ( this table, string cname ) : Rsdn.Janus.TableColumnSchema
table this
cname string
return Rsdn.Janus.TableColumnSchema

GetDiffColumnsCount() public static method

public static GetDiffColumnsCount ( this table1, TableSchema table2 ) : int
table1 this
table2 TableSchema
return int

GetIndex() public static method

public static GetIndex ( this table, string name ) : IndexSchema
table this
name string
return IndexSchema

GetKey() public static method

public static GetKey ( this table, ConstraintType keyType, string columnList ) : KeySchema
table this
keyType ConstraintType
columnList string
return KeySchema

GetKey() public static method

public static GetKey ( this table, ConstraintType keyType, string relTable, string relColumns ) : KeySchema
table this
keyType ConstraintType
relTable string
relColumns string
return KeySchema

GetKey() public static method

public static GetKey ( this table, string keyName ) : KeySchema
table this
keyName string
return KeySchema

GetKey2() public static method

public static GetKey2 ( this table, ConstraintType keyType, string relTable, string relColumns ) : KeySchema
table this
keyType ConstraintType
relTable string
relColumns string
return KeySchema

GetTable() public static method

public static GetTable ( this schema, string tableName ) : TableSchema
schema this
tableName string
return TableSchema

IsColumnExist() public static method

public static IsColumnExist ( this table, string cname ) : bool
table this
cname string
return bool

IsExactColumn() public static method

public static IsExactColumn ( this table, Rsdn.Janus.TableColumnSchema inputColumn ) : bool
table this
inputColumn Rsdn.Janus.TableColumnSchema
return bool

IsGeneratorExist() public static method

public static IsGeneratorExist ( this schema, string gname ) : bool
schema this
gname string
return bool

IsIndexExist() public static method

public static IsIndexExist ( this table, string name ) : bool
table this
name string
return bool

IsKeyExist() public static method

public static IsKeyExist ( this table, ConstraintType keyType, string columnList ) : bool
table this
keyType ConstraintType
columnList string
return bool

IsKeyExist() public static method

public static IsKeyExist ( this table, string keyName ) : bool
table this
keyName string
return bool

IsKeyExist() public static method

public static IsKeyExist ( this table, string keyName, ConstraintType keyType ) : bool
table this
keyName string
keyType ConstraintType
return bool

IsTableExist() public static method

public static IsTableExist ( this schema, string tableName ) : bool
schema this
tableName string
return bool

KeyPrimary() public static method

public static KeyPrimary ( this table ) : KeySchema
table this
return KeySchema

SafeRunCommand() public static method

public static SafeRunCommand ( string cmdText, System.Action runner ) : void
cmdText string
runner System.Action
return void