调试Linq的时候获得相对应的SQL

(query as System.Data.Objects.ObjectQuery).ToTraceString() 
原文地址:https://www.cnblogs.com/xachary/p/4156731.html