I have an object called Client in my .edmx file.
I need to run some linq queries again, but for all of them I need a filter (say active = 1).
I do not want to have where c.active == 1 for all my queries, but it makes sense that my object has a default filter. Is this something that can be done?
Or maybe I can get a query as a base for an object instead of a table? (I am the first approach to the database)
I know that another solution would be to create a view of the database and associate the entity with the view, but I donβt want that either.
Diego source share