Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question