How to implement Unit Of Work?

Good day!
Tried to implement the Unit Of Work and are faced with a problem.

The repository method
public IEnumerable GetAll()
return db.documents_proving_identity;

And when you do a search
from d in DocumentsProvingIdentityRepository.GetAll()
where array.ContainsKey(d.series)
select d

The database is in full sample, without overlap, WHERE in (....)

How to do a correct query was generated?
July 9th 19 at 10:59
2 answers
July 9th 19 at 11:01
July 9th 19 at 11:03
The database is in full sample
So have a lazy request to be. Ie it needs to run with all imposed filters. Not first performed, and then the filter to apply - meta.Lehne commented on July 9th 19 at 11:06
The above answer - mercedes commented on July 9th 19 at 11:09

Find more questions by tags C#Entity Framework