1
I would like all of mine DbSet
filter all calls
I mean, I’d like all the DbSet
make the following filter:
Where(x => x.active == true)
No need for all the time I have to do dbo.Models.Where(x => x
How could I create something like this without using respository pattern
?
could give an example?
– Tobias Mesquita
@Tobymosque Editei
– Rod
I am unable to formulate an answer now, but you can check out the following article: http://www.agile-code.com/blog/entity-framework-code-first-applying-global-filters/
– Tobias Mesquita
@Tobymosque I got to look at this link...but I thought there would be easier way, besides overwriting everything
– Rod