Writing my first Linq application, and I'm trying to find the best way to do the following:
I want to load the entire employees table at once to populate the cache (used for form autocomplete).
I can do -
var query = from employee in db.Employees select employee;
foreach (Employee e in query)
{
...
}
But since this is deferred loading, it generates one query per employee. How can I eager load the entire table?
I've looked into DataLoadOptions
but that seems to only work for relationships.