优化代码

This commit is contained in:
不做码农
2021-12-03 14:13:05 +08:00
parent 60f2d9934c
commit c6a523834c
5 changed files with 12 additions and 70 deletions

View File

@@ -318,10 +318,10 @@ namespace ZR.CodeGenerator
"bigint" => "long",
"tinyint" => "byte",
"numeric" or "real" or "float" => "float",
"decimal" or "numer(8,2)" => "decimal",
"decimal" or "numer(8,2)" or "numeric" => "decimal",
"bit" => "bool",
"date" or "datetime" or "datetime2" or "smalldatetime" => "DateTime",
"money" or "smallmoney" => "double",
"date" or "datetime" or "datetime2" or "smalldatetime" or "timestamp" => "DateTime",
"money" or "smallmoney" => "decimal",
_ => "string",
};
return sTempDatatype;
@@ -409,7 +409,7 @@ namespace ZR.CodeGenerator
/// <param name="replaceDto"></param>
private static void InitJntTemplate(GenerateDto dto, ReplaceDto replaceDto)
{
Engine.Current.Clean();
//Engine.Current.Clean();
//jnt模板引擎全局变量
Engine.Configure((options) =>