Best way to show the SQL trace of a LINQ query to Entity Framework 3.5?
I am using ASP.net and EF 3.5.
Dim dbo As Web.Portal.RBMEntities = New Web.Portal
I just attempted to do this:
Dim TraceString As String = TryCast(Query, ObjectQuery).ToTraceString
Which works great and returns the SQL trace of the LINQ statement.