我有连接到许多表的表实体。我对每个关系设置了级联删除。我还首先在表实体上使用样板软删除。然后,我尝试使用HardDelete()永久删除实体。这是代码:
public async Task DeletePermanently(int id)
{
CurrentUnitOfWork.DisableFilter(AbpDataFilters.SoftDelete);
var entity = await _entityRepository.GetAsync(id);
await _entityRepository.HardDeleteAsync(entity);
}
这是我得到的错误:
SqlException: The Database ID 14, Page (1:2119), slot 0 for LOB data type node does not exist. This is usually caused by transactions that can read uncommitted data on a data page. Run DBCC CHECKTABLE.
我也尝试使用DBCC CHECKDB,并且没有得到任何错误。