C# Class Rsdn.Janus.SchemaHelper

Afficher le fichier Open project: rsdn/janus

Méthodes publiques

Méthode 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 méthode

public static ColumnsList ( this table, string>.Func nameDecorator ) : string
table this
nameDecorator string>.Func
Résultat string

GetColumn() public static méthode

public static GetColumn ( this table, string cname ) : Rsdn.Janus.TableColumnSchema
table this
cname string
Résultat Rsdn.Janus.TableColumnSchema

GetDiffColumnsCount() public static méthode

public static GetDiffColumnsCount ( this table1, TableSchema table2 ) : int
table1 this
table2 TableSchema
Résultat int

GetIndex() public static méthode

public static GetIndex ( this table, string name ) : IndexSchema
table this
name string
Résultat IndexSchema

GetKey() public static méthode

public static GetKey ( this table, ConstraintType keyType, string columnList ) : KeySchema
table this
keyType ConstraintType
columnList string
Résultat KeySchema

GetKey() public static méthode

public static GetKey ( this table, ConstraintType keyType, string relTable, string relColumns ) : KeySchema
table this
keyType ConstraintType
relTable string
relColumns string
Résultat KeySchema

GetKey() public static méthode

public static GetKey ( this table, string keyName ) : KeySchema
table this
keyName string
Résultat KeySchema

GetKey2() public static méthode

public static GetKey2 ( this table, ConstraintType keyType, string relTable, string relColumns ) : KeySchema
table this
keyType ConstraintType
relTable string
relColumns string
Résultat KeySchema

GetTable() public static méthode

public static GetTable ( this schema, string tableName ) : TableSchema
schema this
tableName string
Résultat TableSchema

IsColumnExist() public static méthode

public static IsColumnExist ( this table, string cname ) : bool
table this
cname string
Résultat bool

IsExactColumn() public static méthode

public static IsExactColumn ( this table, Rsdn.Janus.TableColumnSchema inputColumn ) : bool
table this
inputColumn Rsdn.Janus.TableColumnSchema
Résultat bool

IsGeneratorExist() public static méthode

public static IsGeneratorExist ( this schema, string gname ) : bool
schema this
gname string
Résultat bool

IsIndexExist() public static méthode

public static IsIndexExist ( this table, string name ) : bool
table this
name string
Résultat bool

IsKeyExist() public static méthode

public static IsKeyExist ( this table, ConstraintType keyType, string columnList ) : bool
table this
keyType ConstraintType
columnList string
Résultat bool

IsKeyExist() public static méthode

public static IsKeyExist ( this table, string keyName ) : bool
table this
keyName string
Résultat bool

IsKeyExist() public static méthode

public static IsKeyExist ( this table, string keyName, ConstraintType keyType ) : bool
table this
keyName string
keyType ConstraintType
Résultat bool

IsTableExist() public static méthode

public static IsTableExist ( this schema, string tableName ) : bool
schema this
tableName string
Résultat bool

KeyPrimary() public static méthode

public static KeyPrimary ( this table ) : KeySchema
table this
Résultat KeySchema

SafeRunCommand() public static méthode

public static SafeRunCommand ( string cmdText, System.Action runner ) : void
cmdText string
runner System.Action
Résultat void