protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Filter<ISoftDelete, bool>(FiltersEnum.SoftDelete.ToString(), entity => entity.IsDeleted, false); }