mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update db.Storageable
This commit is contained in:
parent
37d347b6e5
commit
5b280b8d2c
@ -57,13 +57,13 @@ namespace SqlSugar
|
||||
var rightValue = Item.GetType().GetProperty(pk).GetValue(Item, null);
|
||||
var left = leftValue.ObjToString();
|
||||
var rigth = rightValue.ObjToString();
|
||||
if (it.GetType().GetProperty(pk).PropertyType == UtilConstants.DecType)
|
||||
if (leftValue!=null&& (leftValue is decimal||leftValue is decimal?))
|
||||
{
|
||||
return Convert.ToDecimal(leftValue) == Convert.ToDecimal(rightValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
return left == rigth;
|
||||
return left.EqualCase(rigth);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user