Update bulkMege

This commit is contained in:
sunkaixuan
2024-07-15 14:05:03 +08:00
parent 6c4f34f788
commit 270e24c2a3

View File

@@ -281,7 +281,7 @@ namespace SqlSugar
{
var isPrimaryKey = whereColumns.Any(it => it.EqualCase(item.ColumnName));
var propertyType = item.DataType;
if (!propertyType.IsClass())
if (!propertyType.IsClass()&& propertyType!=typeof(string) && propertyType != typeof(byte[]))
{
propertyType=typeof(Nullable<>).MakeGenericType(UtilMethods.GetUnderType(item.DataType));
}