IQueryable<T> presult=……
方式1:
string traceString = (presult as System.Data.Objects.ObjectQuery).ToTraceString().ToString();
方式2:
string traceString = presult.GetType().GetMethod("ToTraceString").Invoke(presult, null);