If I have the following code
MyDataContext _dataContext = new MyDataContext(MyConnectionString);
List<Airplane> entireTable = _dataContext.AirPlanes
List<Airplane> propellerPlanes = new List<Airplane>();
foreach(AirPlane p in entireTable){
if(p.IsPropellerPlane) propellerPlanes.Add(p);
}
When this code runs, I'm assuming the processing power for the query is coming from the computer running the program.
But when this code runs:
List<Airplane> propellerPlanes = _dataContext.Airplanes.Where(a => a.IsPropellerPlane).ToList();
Is the processing power running the query coming from the computer running the program, or from the computer with SQL Server installed on it that I've connected to in my connection string?