Hi,
It's possible to cancel a linq query?
If I use a OracleCommand and DataReader I can send a cancel().
I try
var Artikel = Manager.V003MATCH.AsParallel().WithCancellation(cs.Token);
the query is canceled to late
Regards
How to Cancel Linq Query
We do not plan to add query canceling.
You can cancel materialization in the following way:
You can cancel materialization in the following way:
Code: Select all
var query = from m in db.master select m;
bool cancelRequested = true;
foreach (var m in q) {
if (cancelRequested)
break;
}