I\'ve a little question about performance with Entity Framework.
Something like
using (MyContext context = new MyContext()) { Document DocObject
Using the extension method Enumerable.ToList() will construct a new List object from the IEnumerable source collection which means that there is an associated cost with doing ToList().
Enumerable.ToList()
IEnumerable
ToList()