Browse Source

Synchronization code

SqlSugar5
sunkaixuan 2 years ago
parent
commit
f137a4ade1
  1. 9
      Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataRecordExtensions.cs
  2. 2
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs

9
Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataRecordExtensions.cs

@ -324,7 +324,14 @@ namespace SqlSugar
var valueType = value.GetType();
if (valueType.IsIn(UtilConstants.FloatType, UtilConstants.DecType, UtilConstants.DobType))
{
value = Convert.ToUInt32(value);
if (Convert.ToDecimal(value) < 0)
{
value = Convert.ToInt32(value);
}
else
{
value = Convert.ToUInt32(value);
}
}
else if (valueType == UtilConstants.StringType)
{

2
Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs

@ -368,7 +368,7 @@ namespace SqlSugar
model.Args.Add(data);
if (args.Count() == 2)
{
data.MemberName = (args.Last()).ToString();
data.MemberName = (args.Last()).ToString().Replace("\"","");
data.MemberValue = "." ;
}
}

Loading…
Cancel
Save