Skip to content

Commit 62f5fc8

Browse files
committed
Update BaseRepository.cs
1 parent 2606d8c commit 62f5fc8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Blog.Core.Repository/BASE/BaseRepository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ public async Task<bool> Update(
166166
IUpdateable<TEntity> up = _db.Updateable(entity);
167167
if (lstIgnoreColumns != null && lstIgnoreColumns.Count > 0)
168168
{
169-
up = up.IgnoreColumns(it => lstIgnoreColumns.Contains(it));
169+
up = up.IgnoreColumns(lstIgnoreColumns.ToArray());
170170
}
171171
if (lstColumns != null && lstColumns.Count > 0)
172172
{
173-
up = up.UpdateColumns(it => lstColumns.Contains(it));
173+
up = up.UpdateColumns(lstColumns.ToArray());
174174
}
175175
if (!string.IsNullOrEmpty(strWhere))
176176
{

0 commit comments

Comments
 (0)