Browse Source

Update AppendColumnsByDataFilter

SqlSugar5
sunkaixuan 2 years ago
parent
commit
ce160838f2
  1. 2
      Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs

2
Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs

@ -453,7 +453,7 @@ namespace SqlSugar
foreach (var item in this.EntityInfo.Columns.Where(it => !it.IsPrimarykey && !it.IsIgnore && !it.IsOnlyIgnoreUpdate))
{
var value = item.PropertyInfo.GetValue(data);
if (value != null)
if (value != null && !value.Equals(""))
{
if (!value.Equals(UtilMethods.GetDefaultValue(item.UnderType)))
{

Loading…
Cancel
Save