Browse Source

split table insert null error

pull/18/MERGE
sunkaixuan 3 years ago
parent
commit
158acea695
  1. 4
      Src/Asp.Net/SqlSugar/IntegrationServices/SplitTableService.cs

4
Src/Asp.Net/SqlSugar/IntegrationServices/SplitTableService.cs

@ -65,6 +65,10 @@ namespace SqlSugar
} }
else else
{ {
if (entityValue == null)
{
return null;
}
var value = splitColumn.PropertyInfo.GetValue(entityValue, null); var value = splitColumn.PropertyInfo.GetValue(entityValue, null);
if (value == null) if (value == null)
{ {

Loading…
Cancel
Save