mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
Synchronization code
This commit is contained in:
parent
d15bc3bd26
commit
f137a4ade1
@ -323,9 +323,16 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
var valueType = value.GetType();
|
var valueType = value.GetType();
|
||||||
if (valueType.IsIn(UtilConstants.FloatType, UtilConstants.DecType, UtilConstants.DobType))
|
if (valueType.IsIn(UtilConstants.FloatType, UtilConstants.DecType, UtilConstants.DobType))
|
||||||
|
{
|
||||||
|
if (Convert.ToDecimal(value) < 0)
|
||||||
|
{
|
||||||
|
value = Convert.ToInt32(value);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
value = Convert.ToUInt32(value);
|
value = Convert.ToUInt32(value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (valueType == UtilConstants.StringType)
|
else if (valueType == UtilConstants.StringType)
|
||||||
{
|
{
|
||||||
return (T)Enum.Parse(typeof(T), value.ObjToString());
|
return (T)Enum.Parse(typeof(T), value.ObjToString());
|
||||||
|
@ -368,7 +368,7 @@ namespace SqlSugar
|
|||||||
model.Args.Add(data);
|
model.Args.Add(data);
|
||||||
if (args.Count() == 2)
|
if (args.Count() == 2)
|
||||||
{
|
{
|
||||||
data.MemberName = (args.Last()).ToString();
|
data.MemberName = (args.Last()).ToString().Replace("\"","");
|
||||||
data.MemberValue = "." ;
|
data.MemberValue = "." ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user