同步操作将从 TomDeng/CodeBuilder 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
CodeBuilder(中文版) is a lightweight base Database Physical Data Model's code (C#/java/ruby/php/xml etc.) generation tool.
a.support from Powerdesinger 12+ PDM file import to Data Model
b.support from MySql5/SQLserver2000/2005/2008/Oralce Database import to Data Model
c.support velocity template engine for code template
a.windows7 or later
b.net framework4.0 or later(Optional)
1.Create code template by apache velocity
create a text file(eg:example.txt) with UTF-8 encoding,use TDO by velocity
2.Template Data Object(TDO)
a.TDO Properties
Name | Type | Comment |
---|---|---|
Name | string | template data name |
Language | string | programming language (eg:csharp/java/ruby/php/xml etc.) |
Database | string | database (eg:mysql5/sqlserver2000/2005/2008/oralce etc.) |
Package | string | namespaces or package name (eg:com.easytoolsoft) |
TablePrefix | string | table name prefix(eg:cb_table's prefix is "cb") |
Author | string | code author name |
Version | string | code version |
TemplateEngine | string | template engine name default is nvelocity |
TemplateName | string | template display name(eg:example.java.nv file displayname is "example") |
Prefix | string | template prefix |
Suffix | string | template suffix |
Encoding | string | code file encoding (eg:utf8/utf7/ascii etc.) |
TemplateFileName | string | template file name(eg:example.java.nv) |
CodeFileName | string | generated code file name(eg:Example.java) |
IsOmitTablePrefix | bool | is omit table prefix (eg:cb_table will remove "cb") |
IsCamelCaseName | bool | is Camel-Case tables ,views,columns,fields name(eg:cb_table -> Cb_Table) |
ModelObject | object | in the corresponding database tables and views.please ref:b.ModelObject Properties |
b.ModelObject Properties
Name | Type | Comment |
---|---|---|
Id | string | table or view name(eg:cb_table) |
DisplayName | string | table or view display name, default is Name property |
Name | string | table or view Upper Camel-Case name(eg:cb_table -> CbTable) |
OriginalName | string | talbe or view name(eg:cb_table) |
Comment | string | table or view's comment |
MetaTypeName | string | meta data type is:(table |
Columns | Dictionary[string,Column] | table or view's column collection,please ref:c.Column Properties |
PrimaryKeys | Dictionary[string,Column] | table's Primary key column collection |
Keys | Dictionary[string,Column] | table's Non-Primary key column collection |
c.Column Properties
Name | Type | Comment |
---|---|---|
Id | string | column name (eg:first_name) |
DisplayName | string | column display name, default is Name |
Name | string | column Upper Camel-Case name(eg:first_name -> FirstName) |
LowerCamelName | string | column Lower Camel-Case name(eg:first_name -> firstName) |
OriginalName | string | column name (eg:first_name) |
Comment | string | column's comment |
DataType | string | column data type of database (eg: mysql int/bigint/varchar etc.) |
DefaultValue | string | column default value of database |
LanguageType | string | column mapping to programming language (eg:c#/java/ruby etc.) data type (eg: C# int/long/string etc.) |
LanguageDefaultValue | string | column default value of programming language (eg:c#/java/ruby etc.) |
Length | int | column data type length of database |
Ordinal | int | column sequence of table or view |
IsAutoIncremented | bool | column whether auto incremented field |
IsNullable | bool | column whether is null field |
IsComputed | bool | column whether is computed field |
HasDefault | bool | column whether default value |
MetaTypeName | string | meta data type is "column" |
3.Add Template
when templates completed,you should add it to codebuilder
a.VS2010+ or sharpdevelop4.1+
b.ms.net4.0+
c.nunit2.5 or later
d.moq3 or later
e.velocity
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。