From f15d34c918c3f6b0a09ef6587ddb6d44f46f7d33 Mon Sep 17 00:00:00 2001 From: 28810 <28810@YEXIANGQIN> Date: Fri, 31 Jul 2020 03:09:31 +0800 Subject: [PATCH] update code --- FreeSql/Internal/CommonUtils.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FreeSql/Internal/CommonUtils.cs b/FreeSql/Internal/CommonUtils.cs index 922d1573..1fbac9fa 100644 --- a/FreeSql/Internal/CommonUtils.cs +++ b/FreeSql/Internal/CommonUtils.cs @@ -196,6 +196,8 @@ namespace FreeSql.Internal if (attr.ServerTime != DateTimeKind.Unspecified) ret = attr; if (attr._StringLength != null) ret = attr; if (!string.IsNullOrEmpty(attr.InsertValueSql)) ret = attr; + if (attr._Precision != null) ret = attr; + if (attr._Scale != null) ret = attr; if (ret != null && ret.MapType == null) ret.MapType = proto.PropertyType; return ret; }