Skip to content

Commit c9a1e2a

Browse files
committed
- 优化 JsonMap StringLength = -2;#556
1 parent 3014e6f commit c9a1e2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Extensions/FreeSql.Extensions.JsonMap/JsonMapCore.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public static void UseJsonMap(this IFreeSql that, JsonSerializerSettings setting
4949
if (isJsonMap)
5050
{
5151
e.ModifyResult.MapType = typeof(string);
52+
e.ModifyResult.StringLength = -2;
5253
if (_dicTypes.TryAdd(e.Property.PropertyType, true))
5354
{
5455
FreeSql.Internal.Utils.GetDataReaderValueBlockExpressionObjectToStringIfThenElse.Add((LabelTarget returnTarget, Expression valueExp, Expression elseExp, Type type) =>

0 commit comments

Comments
 (0)