can i filter my records on ef tables?

Include filters are available only starting from EF Core 5

But you can specify Query Filter which should start filtering includes automatically.

modelBuilder.Entity<TblRequestionDetail>().HasQueryFilter(d => d.Active == true);

If you need to retrieve not filtered entities: apply IgnoreQueryFilters operator.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top