Skip to content

Commit f15d34c

Browse files
2881028810
authored andcommitted
update code
1 parent 73c8751 commit f15d34c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

FreeSql/Internal/CommonUtils.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ public ColumnAttribute GetEntityColumnAttribute(Type type, PropertyInfo proto)
196196
if (attr.ServerTime != DateTimeKind.Unspecified) ret = attr;
197197
if (attr._StringLength != null) ret = attr;
198198
if (!string.IsNullOrEmpty(attr.InsertValueSql)) ret = attr;
199+
if (attr._Precision != null) ret = attr;
200+
if (attr._Scale != null) ret = attr;
199201
if (ret != null && ret.MapType == null) ret.MapType = proto.PropertyType;
200202
return ret;
201203
}

0 commit comments

Comments
 (0)