How do I view the SQL generated by entity framework ?
(In my particular case I\'m using the mysql provider - if it matters)
If you are using a DbContext, you can do the following to get the SQL:
var result = from i in myContext.appEntities select new Model { field = i.stuff, }; var sql = result.ToString();