How do I view the SQL generated by entity framework ?
(In my particular case I\'m using the mysql provider - if it matters)
You can do the following in EF 4.1:
var result = from x in appEntities where x.id = 32 select x; System.Diagnostics.Trace.WriteLine(result .ToString());
That will give you the SQL that was generated.