Update db.Storageable

This commit is contained in:
sunkaixuan 2022-11-28 19:27:25 +08:00
parent 37d347b6e5
commit 5b280b8d2c

View File

@ -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);
}
}