So here is what I would like to be able to do.
var a = Item.CatchLog().Where(x=>x.Property=="value").Take(10);
or
var a = Item.CatchLog().FirstOrDefault(x=>x.Property=="value");
or
var a = Item.CatchLog().Any(x=>x.Property=="value");
Essentially, I would like is for CatchLog() to basically wrap the execution of the query in a try catch, and Debug.WriteLine() the Exception and then throw it.
Any ideas on how I could implement something like this?
You would need to rewrite your statement, like so:
If you allow that, you could write something like: