Synchronization code

This commit is contained in:
sunkaixuan
2024-04-19 17:49:32 +08:00
parent 7e92ca1d19
commit 834e29e72b

View File

@@ -97,6 +97,10 @@ namespace SqlSugar
{
return FormatValue(it.Value,it.PropertyName,i,it);
}
else if (it.Value is byte[])
{
return FormatValue(it.Value, it.PropertyName, i, it);
}
else
{
value = it.Value;
@@ -125,7 +129,7 @@ namespace SqlSugar
else
{
var type = value.GetType();
if (type == UtilConstants.DateType || columnInfo.IsArray || columnInfo.IsJson)
if (type == UtilConstants.ByteArrayType||type == UtilConstants.DateType || columnInfo.IsArray || columnInfo.IsJson)
{
var parameterName = this.Builder.SqlParameterKeyWord + name + i;
var paramter = new SugarParameter(parameterName, value);