mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
修改DeleteById(object id) 低版本报错问题
This commit is contained in:
parent
4e07c20e40
commit
4caf3cdfa1
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user