How to apply global filter on Entity Framework?
Posted
by Hernan
on Stack Overflow
See other posts from Stack Overflow
or by Hernan
Published on 2010-04-12T19:00:59Z
Indexed on
2010/04/12
19:02 UTC
Read the original article
Hit count: 371
LINQ
|entity-framework
I have a table in my model named Customers with a field IsActive. Whenever I run a query on Customers, only the active customers should be retrieved. I can include the filter in every query, but that doesn't look very. I would like to be able to override the Customers property at the Object Context lever, but I am not sure if this is possible. Any help would be very appreciated! Thanks
© Stack Overflow or respective owner