ASP.NET Linq To Sql - cannot make to work


#1

Hello,
I have this code in my project:

Imports StackExchange.Profiling
Partial Public Class myLinqDataContext
Public Shared Function CreateNewContext() As myLinqDataContext
        Dim conn = New StackExchange.Profiling.Data.ProfiledDbConnection(New myLinqDataContext().Connection, MiniProfiler.Current)
        Return New myLinqDataContext(conn)
    End Function
End Class

But I cannot see any SQL items in result of profiling.
Please help :slight_smile:

Thanks a lot
Mirek