Hi all,
Per this post on
nhibernate-development<https://groups.google.com/d/topic/nhibernate-development/auUPY6HqtK0/discussion>,
support for Managed ODP.NET is in the master branch.
I am currently using NHibernate 3.3.2.4000 via Nuget, and have references
in my project to NHibernate and Oracle.ManagedDataAccess. I'm unsure
whether this support is not yet in my version from master or if I'm just
doing it wrong.
I wrote a quick console program to attempt to test it -- the configuration
reads like:
cfg
> .DataBaseIntegration(db => {
> db.ConnectionString = "[Redacted full Oracle
> connection string]";
> db.Dialect<Oracle10gDialect>();
> * db.Driver<OracleDataClientDriver>(); //NOTE:
> No OracleManagedDataClientDriver or anything along those lines appeared to
> exist.
> * db.KeywordsAutoImport =
> Hbm2DDLKeyWords.AutoQuote;
> db.BatchSize = 500;
> })
> .AddAssembly(typeof(WorkorderBrief).Assembly)
> .SessionFactory().GenerateStatistics();
FYI -- using the managed odp.net OracleConnection class and y connection
string, I'm able to successfully open a connection, so I know that Managed
ODP.NET is able to open a connection using my connection string &
credentials.
Thanks in advance for any help/insight you can provide!
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.