the question seems clear enough, but I'll add a case
using (var context = new MyEntities())
{
if(context.mytable.Any(row => row.myfield == 2))
{
// do something here
}
}
I am new to Entity Framework. I don't know how to check the exact sql query executed?