DotConnect nHibernate Sample

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
corelio
Posts: 1
Joined: Thu 23 Nov 2017 20:44

DotConnect nHibernate Sample

Post by corelio » Thu 23 Nov 2017 20:56

Hi. I am trying to use DotConnect Driver (9.5.381) with Oracle 11g and nHibernate 4.1.

I used a code based on a old post from 2010
https://blog.devart.com/nhibernate_and_oracle.html

However, the code uses Devart.Data.Oracle.NHibernate.* classes which I can not find anywhere.

public DevartOracleDriver()
: base("Devart.Data.Oracle",
"Devart.Data.Oracle.NHibernate.NHibernateOracleConnection",
"Devart.Data.Oracle.NHibernate.NHibernateOracleCommand")
{
}

Is this code still working? Any hints on how to solve this?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: DotConnect nHibernate Sample

Post by Shalex » Tue 28 Nov 2017 06:55

Both Devart.Data.Oracle.NHibernate.NHibernateOracleConnection and Devart.Data.Oracle.NHibernate.NHibernateOracleCommand classes are available in Devart.Data.Oracle.dll of Professional version.

These classes are internal. You can use them like described in the tutorial.

cgibbons24
Posts: 2
Joined: Wed 05 Sep 2018 15:26

Re: DotConnect nHibernate Sample

Post by cgibbons24 » Wed 05 Sep 2018 15:30

Do these classes exist in the nuget.org version of Devart.Data.Oracle.dll? Using the example shown I get an error that those classes can't be found, even though I have an entry in the app.config. This is running on dotnet core on linux, so there is no GAC. However I get the same error running locally. I haven't added the dll to the gac locally either so as not to mask issues.

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: DotConnect nHibernate Sample

Post by Pinturiccio » Fri 07 Sep 2018 14:03

We have reproduced the issue. We will investigate it and post here about the results as soon as possible.

cgibbons24
Posts: 2
Joined: Wed 05 Sep 2018 15:26

Re: DotConnect nHibernate Sample

Post by cgibbons24 » Thu 13 Sep 2018 14:50

Any update?

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: DotConnect nHibernate Sample

Post by Pinturiccio » Fri 14 Sep 2018 14:16

We have fixed the bug with not presenting Devart.Data.Oracle.NHibernate.NHibernateOracleConnection and Devart.Data.Oracle.NHibernate.NHibernateOracleCommand classes in the .Net Core NuGet package. We will post here when the corresponding build of dotConnect for Oracle is available for download.

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: DotConnect nHibernate Sample

Post by Pinturiccio » Thu 20 Sep 2018 12:47

New build of dotConnect for Oracle 9.6.597 is available for download.
It can be downloaded from https://www.devart.com/dotconnect/oracle/download.html (trial version) or from Customer Portal (for users with valid subscription only).
We have also updated our NuGet package: https://www.nuget.org/packages/Devart.Data.Oracle/
For more information, please refer to viewtopic.php?t=37715

Post Reply