Can't use Entity Framework and Enterprise Library together
Posted: Thu 28 Oct 2010 21:25
I am working on an application that uses the Entity Framework for most of its database access but occasionally it needs to run a random SQL query - for this I am using Enterprise Library.
I have each piece working correctly by itself with the devArt libraries but if I run an Enterprise Library ExecuteDataSet() after a LINQ to Entity query I get the following error:
Can not load Oracle client. Check your PATH environment variable and registry settings.
I am Closing the connection and calling Dispose on my Entity Context before the Enterprise Library call but that makes no difference.
If I make the Enterprise Library call first and then the Entity Query everything works perfectly - except that I can no longer make EntLib calls.
My guess is that the EF call is blocking the EntLib call but I don't know how to fix this.
I have each piece working correctly by itself with the devArt libraries but if I run an Enterprise Library ExecuteDataSet() after a LINQ to Entity query I get the following error:
Can not load Oracle client. Check your PATH environment variable and registry settings.
I am Closing the connection and calling Dispose on my Entity Context before the Enterprise Library call but that makes no difference.
If I make the Enterprise Library call first and then the Entity Query everything works perfectly - except that I can no longer make EntLib calls.
My guess is that the EF call is blocking the EntLib call but I don't know how to fix this.