var res = new EmptyCheckEnumerable<object>(dc.Execute<object>("SELECT * FROM foo")); if (!res.IsEmpty) { // allocate resources and consume the IE - will only execute the SELECT once }
Remember Me