For my models I have a active
attribute on all of them, and i want to filter all inactive if the model was not displayed on the administration
What is the best
You can do it like this:
You can find working code at this answer: How to soft delete using Entity Framework Code First