代码生成Csharp数据类型改为配置文件

This commit is contained in:
不做码农
2023-06-18 21:36:03 +08:00
parent f848aa94ac
commit 2c287f66f3
4 changed files with 133 additions and 61 deletions

View File

@@ -62,7 +62,17 @@
"autoPre": true, //自动去除表前缀
"author": "admin",
"tablePrefix": "sys_", //"表前缀(生成类名不会包含表前缀,多个用逗号分隔)",
"vuePath": "" //前端代码存储路径egD:\Work\ZRAdmin-Vue3
"vuePath": "", //前端代码存储路径egD:\Work\ZRAdmin-Vue3
"csharpTypeArr": {
"string": [ "varchar", "nvarchar", "text", "longtext" ],
"int": [ "int", "integer", "smallint", "int4", "int8", "int2" ],
"long": [ "bigint", "number" ],
"float": [ "numeric", "real", "float" ],
"decimal": [ "money", "decimal", "smallmoney" ],
"dateTime": [ "date", "datetime", "datetime2", "smalldatetime", "timestamp" ],
"byte": [ "tinyint" ],
"bool": [ "bit" ]
}
},
//邮箱配置信息
"MailOptions": {
@@ -71,7 +81,7 @@
//发送人邮箱
"FromEmail": "", //egxxxx@qq.com
//发送人邮箱密码
"Password": "123456",
"Password": "",
//协议
"Smtp": "smtp.qq.com",
"Port": 587,