Friday, March 2, 2018

Entity Framework Core Feature - Global Query Filters

This feature is also refer as Model-level query filters. It allows to specify filter in the model level that are automatically applied to all queries that executed on the context on the specified type. It means that entity framework automatically adds the filter in where clause before executing the LINQ queries. Usually Global query filters are applied in OnModelCreating method of context. This filters are also automatically applied to LINQ queries involving the entity types referenced indirectly like included as navigation property.

source http://www.c-sharpcorner.com/article/entity-framework-core-featu-global-query-filters/

No comments:

Post a Comment