修改DeleteById(object id) 低版本报错问题

This commit is contained in:
weiguang3100 2022-04-25 11:31:25 +08:00
parent 4e07c20e40
commit 4caf3cdfa1

View File

@ -200,7 +200,7 @@ namespace Blog.Core.Repository.Base
/// <returns></returns>
public async Task<bool> DeleteById(object id)
{
return await _db.Deleteable<TEntity>(id).ExecuteCommandHasChangeAsync();
return await _db.Deleteable<TEntity>().In(id).ExecuteCommandHasChangeAsync();
}
/// <summary>