refactor:修复仓储接口和实现中的DeleteAsync方法问题 │
1. 为IBaseRepository接口添加DeleteByIdsAsync方法定义 2. 为所有仓储实现类添加DeleteByIdsAsync方法实现 3. 修复DeviceAppService中deviceId未定义的问题 4. 修复DeviceManagementService中DeleteDeviceByIdAsync方法不存在的问题 5. 修复所有仓储类中DeleteAsync(List<T>)方法实现不正确的问题 6. 修复Email相关仓储类中Deleteable方法参数错误的问题"
This commit is contained in:
@@ -43,6 +43,12 @@ public interface IBaseRepository<T> where T : class
|
||||
/// <param name="id">要删除的实体的主键ID。</param>
|
||||
Task<int> DeleteByIdAsync(int id);
|
||||
|
||||
/// <summary>
|
||||
/// 异步根据实体列表批量删除实体。
|
||||
/// </summary>
|
||||
/// <param name="entrities">要删除的实体列表。</param>
|
||||
Task<int> DeleteAsync(List<T> entrities);
|
||||
|
||||
/// <summary>
|
||||
/// 异步根据ID列表批量删除实体。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user