M
M
Michael2016-05-28 14:28:24
C++ / C#
Michael, 2016-05-28 14:28:24

How to properly implement Unit Of Work?

Good day!
Tried to implement Unit Of Work and ran into a problem.
In the repository method
public IEnumerable GetAll()
{
return db.documents_proving_identity;
}
And when I do a search
from d in DocumentsProvingIdentityRepository.GetAll()
where array.ContainsKey(d.series)
select d
Then a complete selection comes from the database, without overlapping WHERE in (....)
How can I make sure that the query is generated correctly?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Петр, 2016-05-28
@Slider_vm

IEnumerable и IQueryable

То из базы идет полная выборка
GetAll

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question