Entity Framework Code First Soft Delete Lazy Loading
So I'm using Entity Framework Code First (so no .edmx) I have a base entity class with a bool IsEnabled to do soft delete's I am using repository pattern so all queries against the repository can be filtered out with IsEnabled. However any time I use the repository to get an MyType which is IsEnabled, Lazy Loading MyType.Items may mean that Items could be not enabled. Is there a way, perhaps with EF Fluent to describe how to do filtering on tables? Update: If I have a Dbset public class UnitOfWork : DbContext { private IDbSet<MyObj> _MyObj; public IDbSet<MyObj> MyObjs { get { return _MyObj ??