I have table Entity which is connected to many tables. I set up on every relationship cascade delete. I also use boilerplate soft delete on table Entity first. Then I try to use HardDelete() to delete entity permanently. Here is code:
{
CurrentUnitOfWork.DisableFilter(AbpDataFilters.SoftDelete);
var entity = await _entityRepository.GetAsync(id);
await _entityRepository.HardDeleteAsync(entity);
}
This is error that I get:
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.
I try also DBCC CHECKDB, and don't get any error.
When I try to run Migrator project I got this error:
Unhandled Exception: Castle.MicroKernel.Handlers.HandlerException: Can't create component 'PROJECT.EntityFrameworkCore.PROJECTEntityFrameworkCoreModule' as it has dependencies to be satisfied.
'PROJECT.EntityFrameworkCore.PROJECTEntityFrameworkCoreModule' is waiting for the following dependencies:
I have iplemented soft delete for some table. And when I want to delete some things permanently, I disabled soft delete and call HardDelete function. But that don't work. Is there way for this situation to use hard delete?
Dear Aaron, just to check did you see my message above, thank you.
Hi, sorry because late response, we were on New Year holiday. That was a good hint, we had a problem with updating and we solve it. Right now we are struggling with showing changes just for the particular entity, or more precisely , we want to filter by ID of the entity in order to show changes just for the particular record. Do you have any hint for this issue, should we use custom data as it described in the article below or there is a more simple way to achieve that? https://forum.aspnetboilerplate.com/viewtopic.php?f=2&t=4152&p=9553&hilit=customdata+abpauditlogs#p9553
Thank you in advance!
I have an issue with AbpEntityPropertyChanges table. Records are being added when new entity is created but not when it is updated. AbpEntityChanges works perfectly fine. Do you have any hint regading that?
Great, thank you, it works :)
Dear, Is it posible to configure Asp.Net Zero in order to track changes and get a log of before/after values?