diff --git a/Yi.Framework.Net6/src/framework/Yi.Framework.Core.Sqlsugar/Repositories/SqlsugarRepository.cs b/Yi.Framework.Net6/src/framework/Yi.Framework.Core.Sqlsugar/Repositories/SqlsugarRepository.cs index 556ebab1..eb50b0f2 100644 --- a/Yi.Framework.Net6/src/framework/Yi.Framework.Core.Sqlsugar/Repositories/SqlsugarRepository.cs +++ b/Yi.Framework.Net6/src/framework/Yi.Framework.Core.Sqlsugar/Repositories/SqlsugarRepository.cs @@ -95,7 +95,7 @@ namespace Yi.Framework.Core.Sqlsugar.Repositories } else { - return await base.DeleteByIdAsync((object)id); + return await _Db.Deleteable().In(id).ExecuteCommand() > 0; } }