the question seems clear enough, but I\'ll add a case
using (var context = new MyEntities()) { if(context.mytable.Any(row => row.myfield == 2)) { // d
You can find a similar question here: How to view generated SQL from Entity Framework?
To sum up, your choices are:
See the referenced question for details.