Method | Description | |
---|---|---|
Build ( IDialect dialect, Mapping mappings, string databaseName ) : DatabaseScriptEntry |
生成数据库脚本
|
|
DatabaseScriptGenerator ( ) : System | ||
GetDbType ( |
得到对应的数据库类型
|
Method | Description | |
---|---|---|
BuildCheckConstraintScript ( IMemberMapping member ) : string |
构建特定映射对应的检查约束脚本
|
|
BuildDatabaseScript ( string databaseName ) : string |
构建数据库脚本
|
|
BuildFKScript ( IMemberMapping member ) : string |
构建特定映射对应的外键脚本
|
|
BuildPKScript ( IMemberMapping members ) : string |
构建特定映射对应的主键脚本
|
|
BuildSchemaScript ( IEntityMapping mappings ) : string[] |
构建Schema脚本
|
|
BuildSequenceScript ( Mapping mapping ) : string |
构建序列脚本
|
|
BuildTableScript ( IEntityMapping mapping ) : string |
构建建表脚本
|
|
BuildUniquleConstraintScript ( IMemberMapping member ) : string |
构建特定映射对应的唯一性约束脚本
|
|
GetDefaultValue ( IMemberMapping f, |
得到缺省值
|
|
GetTableName ( IEntityMapping mapping ) : string |
得到表名
|
|
RegisterColumnType ( DBType code, int size, string name ) : void | ||
RegisterColumnType ( DBType code, string name ) : void | ||
RegisterColumnTypes ( ) : void |
Method | Description | |
---|---|---|
BuildAllSequanceScripts ( IEntityMapping Mappings ) : string[] | ||
BuildColumn ( StringBuilder sb, IMemberMapping f ) : void |
public Build ( IDialect dialect, Mapping mappings, string databaseName ) : DatabaseScriptEntry | ||
dialect | IDialect | 数据库方言 |
mappings | Mapping | 映射元数据 |
databaseName | string | |
return | DatabaseScriptEntry |
protected BuildCheckConstraintScript ( IMemberMapping member ) : string | ||
member | IMemberMapping | |
return | string |
protected BuildDatabaseScript ( string databaseName ) : string | ||
databaseName | string | |
return | string |
protected BuildFKScript ( IMemberMapping member ) : string | ||
member | IMemberMapping | |
return | string |
protected BuildPKScript ( IMemberMapping members ) : string | ||
members | IMemberMapping | |
return | string |
protected BuildSchemaScript ( IEntityMapping mappings ) : string[] | ||
mappings | IEntityMapping | |
return | string[] |
protected BuildSequenceScript ( Mapping mapping ) : string | ||
mapping | Mapping | |
return | string |
protected BuildTableScript ( IEntityMapping mapping ) : string | ||
mapping | IEntityMapping | |
return | string |
protected BuildUniquleConstraintScript ( IMemberMapping member ) : string | ||
member | IMemberMapping | |
return | string |
public GetDbType ( |
||
sqlType | ||
return | string |
protected GetDefaultValue ( IMemberMapping f, |
||
f | IMemberMapping | |
sqlType | ||
return | string |
protected GetTableName ( IEntityMapping mapping ) : string | ||
mapping | IEntityMapping | |
return | string |
protected RegisterColumnType ( DBType code, int size, string name ) : void | ||
code | DBType | |
size | int | |
name | string | |
return | void |
protected RegisterColumnType ( DBType code, string name ) : void | ||
code | DBType | |
name | string | |
return | void |