mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 优化 JsonMap StringLength = -2;#556
This commit is contained in:
parent
3014e6faf0
commit
c9a1e2a7b8
@ -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) =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user