Base solution for your next web application
Open Closed

EF Include entities with filters #3781


User avatar
0
Ricavir created

Hi,

I have implemented a kind of addressbook as you've described in your "step by step" document for ASP.NET CORE + ANGULAR.

My problem is that when I remove child entities, let's say removing a phone entities from Person entity, they are still available after querying the database. This is because of SoftDelete. I read that it is an EF limitation and filters aren't applied to included entities...

Do you have the same result with your phonebook example project ?


2 Answer(s)
  • User Avatar
    0
    Ricavir created

    OK, I found the difference with my implementation. My entity was inheriting from FullAuditedEntity. I passed it to CreationAuditedEntity and it works has expected.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @Ricavir :).