Init source code is copy from :https://github.com/ShashangkaShekhar/Code-Generator
(TW)我額外增加需求,並修正其程式碼架構。
(TW)歡迎志同道合者加入需求開發
(上至下,由舊到新)
- ☑️ (TW)Table欄位資訊額外取得-Description資料 (2018/11/09 add)
- ☑️ (TW)Model產生樣式的架構,改寫使用DotLiquid的樣版處理 (2018/11/09 add)
- ☑️ (TW)取得Table的描述資訊,並傳至CodeGenerate中使用(2018/11/12)
- ☑️ (TW)Generate 後的Response Data改為Dictionary的Json資料以便於判斷及維護(2018/11/12)
- ☑️ (TW)各類型的資料Generate,皆一致傳入dbTable及dbColumns的資訊(2018/11/12)
(TODO)
(TODO)
see this page: 建置手冊.md
(None)
(TODO)
when you define template, the default variable is contain : [table , columns , other ]
each model's property information:
Type | Table Info | Column Info | Other Info |
---|---|---|---|
variable | TableId TableName MapTableName TableDescription |
ColumnId, ColumnName, MapColumnName, ColumnDescription, DataType, ModelType, MaxLength, |
IndentityColumn IndentityModelType IndentityColumnDescription |
Sample | {{table.MapTableName}} | {{column.ColumnName}} | {{other.IndentityColumn}} |
memo | can see "TableInfoForLiquid.cs" under the "LiquidModels" folder |
can see "ColumnInfoForLiquid.cs" under the "LiquidModels" folder |
can see "OtherForLiquid.cs" under the "LiquidModels" folder |
(TODO)
- **ShashangkaShekhar ** - original code author - ShashangkaShekhar
- Howard Chiang - it's me , add some useful requirement ! - Howard Chiang
This project is licensed under the MIT License - see the LICENSE.md file for details
- thanks ShashangkaShekhar ,code init Auther, i use your source code and append my requirement.