I have SqlServerQueryVisualizer. I can see the SQL when I hover on “accounts” variable. But when I hover on “results” variable, it is not showing the SQL query. How to see the SQL query for “results” variable in the following code?
public IEnumerable<T> FindAll(Func<T, bool> predicate)
{
LibraryManagementClassesDataContext db = new LibraryManagementClassesDataContext("");
var accounts = from p in db.Accounts
where p.AccountNumber == 1
select p;
//Where
var results = Context.GetTable<T>().Where(predicate);
return results;
}
Also, I have a insert function. How to see the generated query for this scenario?
public virtual void InsertOnSubmit(T entity)
{
GetTable().InsertOnSubmit(entity);
}