# Using miniprofiler EF with odac

**URL:** <https://community.miniprofiler.com/t/using-miniprofiler-ef-with-odac/70>\
**Category:** uncategorized\
**Created:** [September 3, 2012, 12:18am UTC](https://community.miniprofiler.com/t/using-miniprofiler-ef-with-odac/70 "2012-09-03T00:18:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manasagn](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@manasagn](https://community.miniprofiler.com/u/manasagn)\
**Post date:** [September 3, 2012, 12:18am UTC](https://community.miniprofiler.com/t/using-miniprofiler-ef-with-odac/70/1 "2012-09-03T00:18:47Z")

</div>

Hi,

I am trying to use miniprofiler EF for oracle connection. If followed all the suggestions given in stackoverflow -

created oracleconnection and then passed to create profile connection  
EFProfiledDbConnection(oracleconnection , MiniProfiler.Current);

then using this profileconnection in the DBcontext base controller.

after this when I do DBcontext of LINQ I am getting

- Unhandled Exception: System.ArgumentException: Oracle.DataAccess.Client.OracleConnection is invalid  
at Oracle.DataAccess.Client.EFOracleProviderServices.GetDbProviderManifestToken(DbConnection connection)  
at System.Data.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)

Please guide me.

miniprofile EF - 2.0  
EF- 4.2  
ODAC - 4.11
