- 优化 JsonMap StringLength = -2;#556

This commit is contained in:
2881099 2020-11-23 22:38:52 +08:00
parent 3014e6faf0
commit c9a1e2a7b8

View File

@ -49,6 +49,7 @@ public static class FreeSqlJsonMapCoreExtensions
if (isJsonMap) if (isJsonMap)
{ {
e.ModifyResult.MapType = typeof(string); e.ModifyResult.MapType = typeof(string);
e.ModifyResult.StringLength = -2;
if (_dicTypes.TryAdd(e.Property.PropertyType, true)) if (_dicTypes.TryAdd(e.Property.PropertyType, true))
{ {
FreeSql.Internal.Utils.GetDataReaderValueBlockExpressionObjectToStringIfThenElse.Add((LabelTarget returnTarget, Expression valueExp, Expression elseExp, Type type) => FreeSql.Internal.Utils.GetDataReaderValueBlockExpressionObjectToStringIfThenElse.Add((LabelTarget returnTarget, Expression valueExp, Expression elseExp, Type type) =>