diff --git a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs index 868bd92b3..953c205d9 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs @@ -1334,7 +1334,7 @@ namespace SqlSugar { Action> mapper = (entitys) => { - if (entitys.IsNullOrEmpty()&&entitys.Any()) return; + if (entitys.IsNullOrEmpty()||!entitys.Any()) return; var entity = entitys.First(); var whereCol = filedEntity.Columns.FirstOrDefault(it => it.PropertyName.Equals(filedName, StringComparison.CurrentCultureIgnoreCase)); if (whereCol == null) @@ -1389,7 +1389,7 @@ namespace SqlSugar { Action> mapper = (entitys) => { - if (entitys.IsNullOrEmpty()&&entitys.Any()) return; + if (entitys.IsNullOrEmpty()||!entitys.Any()) return; var entity = entitys.First(); var tEntity = this.Context.EntityMaintenance.GetEntityInfo(); var whereCol = tEntity.Columns.FirstOrDefault(it => it.PropertyName.Equals(filedName, StringComparison.CurrentCultureIgnoreCase));