# ASP.NET Linq To Sql - cannot make to work

**URL:** <https://community.miniprofiler.com/t/asp-net-linq-to-sql-cannot-make-to-work/557>\
**Category:** .NET\
**Created:** [March 10, 2017, 1:25pm UTC](https://community.miniprofiler.com/t/asp-net-linq-to-sql-cannot-make-to-work/557 "2017-03-10T13:25:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![knapek](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@knapek](https://community.miniprofiler.com/u/knapek)\
**Post date:** [March 10, 2017, 1:25pm UTC](https://community.miniprofiler.com/t/asp-net-linq-to-sql-cannot-make-to-work/557/1 "2017-03-10T13:25:32Z")

</div>

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 🙂

Thanks a lot  
Mirek
