I am using new .net core and EF.
I need help with include linq command. I have some 1:N models and if the collection contais some data marked like deleted I do not w
You can configure a Query Filter in your DbContext.
modelBuilder.Entity() .HasQueryFilter(admin => !EF.Property(admin, "IsDeleted"));
should do the trick
Reference link: https://docs.microsoft.com/en-us/ef/core/querying/filters