Base solution for your next web application
Open Closed

DeleteAsync issue, how to debug? #3063


User avatar
0
sergiop created

Hello Im having a problem with this line on the ProductsAppService.

await _plannerRepository.DeleteAsync(result.Id);

It does not perform the softdelete, the integer result.Id is fine. but nothing happens, no errors. The same line is working fine with the rest of the entities. Any idea about how to debug this? The class that updates the modified date/modifier user and isdeleted flag for example? Thank you.


2 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    Could you check Logs.txt and send us if there is an error message?

  • User Avatar
    0
    sergiop created

    You are correct !!! Thank you !!! , I got million of stuff in my head forgot the simple things !!! Some validation errors, an offending column, foreign key that is marked as .WillCascadeOnDelete(false) on the context should not cause any issue but it does, should not use other Key than ID on the related table but it is what I need, since the table will be updated manually time to time an there is no way to use the ID field. Thank you