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?
2 answers
The database is in full sample
GetAll
Find more questions by tags C#Entity Framework