# Miniprofiler and Devart OracleConnector

**URL:** <https://community.miniprofiler.com/t/miniprofiler-and-devart-oracleconnector/108>\
**Category:** uncategorized\
**Created:** [July 2, 2012, 3:38am UTC](https://community.miniprofiler.com/t/miniprofiler-and-devart-oracleconnector/108 "2012-07-02T03:38:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gradinariu\_Ceza](https://avatars.discourse-cdn.com/v4/letter/g/94ad74/32.png) [@Gradinariu\_Ceza](https://community.miniprofiler.com/u/Gradinariu_Ceza)\
**Post date:** [July 2, 2012, 3:38am UTC](https://community.miniprofiler.com/t/miniprofiler-and-devart-oracleconnector/108/1 "2012-07-02T03:38:19Z")

</div>

Hi,

I took today the latest version 2.0.2 and while the UI profiling works like charm, thank you, but for some reason I could not find a way to set the DB profiling at all.

The thing is I am using Devartâ€™s Oracle connector 6.8 and EF code first (EF is 4.3) with MVC 4.

When setting the MiniProfilerPackage.PreStart() I am clueless on what to do to give it the right DbConnection that i can get from Devart. If i do:

```
var conn = new OracleConnection(â€œconnection string hereâ€); var profiled = new ProfiledDbConnection(conn, MiniProfiler.Current);

MiniProfilerEF.Initialize();

```

I keep getting this error:

Unable to cast object of type â€˜StackExchange.Profiling.Data.EFProfiledDbConnectionâ€™ to type â€˜Devart.Data.Oracle.OracleConnectionâ€™.

Is there any possibility to make this combination work?

Thank you for this great tool.

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [July 3, 2012, 7:49pm UTC](https://community.miniprofiler.com/t/miniprofiler-and-devart-oracleconnector/108/2 "2012-07-03T19:49:30Z")

</div>

are you using the MiniProfiler.EF nuget package? it includes all the magic needed to profile EF
