Below is my Code to Query a 24 Column database using linq
var list = (from x in db.graph_update
where x.serial == serial_number
&& (x.plotdate >= date_from && x.plotdate <= date_to)
select new {
x.plotdate,
x.Temperature
}).ToList();
Because the Database contains a large amounts to data, the connection time to grab all this data will take a long time and usually results in an error:
500 - The request timed out.
The web server failed to respond within the specified time.
How do I maintain this long running connection so it wouldn't timeout and be able to grab all of the data?