I'm using linq to sql. And do something like:
IEnumerable<VarValues> parameters = GetDayParameters();
protected IEnumerable<VarValues> GetDayParameters()
{
return "some linq query";
}
After that, i'm using LINQ to Objects for "parameters"-variable, in loop, and that queries start to connect to database. Question is, can i force LINQ to SQL, get, all i want from database into parameters variable, and do not connect to database, anymore.