LinqPad

29 views
Skip to first unread message

fig...@gmail.com

unread,
Jul 25, 2014, 4:33:50 AM7/25/14
to blto...@googlegroups.com
Hi 

Is there a possibility to use LinqPad with BLToolkit, it would be nice to check the queries which are generated by the BLToolkit.

fig...@gmail.com

unread,
Jul 25, 2014, 10:51:00 AM7/25/14
to blto...@googlegroups.com, fig...@gmail.com
I found out that following methods would write the query inside of LinqPad Console... and that is not so bad 
BLToolkit.Data.DbManager.TurnTraceSwitchOn();
BLToolkit.Data.DbManager.WriteTraceLine = (s1, s2) =>
{
  Console.WriteLine(s1);
  Console.WriteLine(s2);
};


but now i have problem to trace following query:
SqlQuery<T> query = new SqlQuery<T>(this.GetDbManager());
return query.SelectByKey(keys);

How SqlQuery could be traced?
Reply all
Reply to author
Forward
0 new messages