Prechádzať zdrojové kódy

fixed e83f6b1 from https://gitee.com/616036448/Admin.NET/pulls/1197
【轻量级 pr】:数据库类型转.net类型中添加datetime2转DateTime类型的支持

轻风2016 1 rok pred
rodič
commit
984da722b4

+ 1 - 1
Admin.NET/Admin.NET.Core/Util/CodeGenUtil.cs

@@ -242,7 +242,7 @@ public static class CodeGenUtil
             "bit" => "bool",
             "money" or "smallmoney" or "numeric" or "decimal" => "decimal",
             "real" => "Single",
-            "datetime" or "smalldatetime" => "DateTime",
+            "datetime" or "datetime2" or "smalldatetime" => "DateTime",
             "float" or "double" => "double",
             "image" or "binary" or "varbinary" => "byte[]",
             "uniqueidentifier" => "Guid",