[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-27 Thread David R. Longnecker
LOL, always fun to search the archives and find a discussion about your blog post. Re: the code in that post, Oracle.DataAccess.dll must be included with the project and, if it's a web application, the Copy Local flag must be set to 'true' on the reference. I never have found a better way to

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-19 Thread Filip Kinsky
you can use configuration class for Oracle from this blog post: http://tiredblogger.wordpress.com/2008/12/04/persistanceconfiguration-for-oraclefluent-nhibernate/ On 18 Ún, 22:32, George Mauer gma...@gmail.com wrote: Almost certainly a stupid question but I can't find the answer anywhere. In

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-19 Thread James Gregory
Good link Filip, I didn't know that existed. It's a shame people don't submit things like that as patches. On Thu, Feb 19, 2009 at 7:57 AM, Filip Kinsky fi...@filovo.net wrote: you can use configuration class for Oracle from this blog post:

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-19 Thread James Gregory
That's interesting. The code does look out of date actually. Shouldn't be too difficult to derive from the PersistenceConfiguration class and create your own OracleConfiguration. I'd do it myself but I don't have oracle or really know the different options available in it's connection string. On

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-19 Thread George Mauer
I fixed it up to this: http://pastebin.com/f3704d5a9 but then is started throwing a NHibernate.HibernateException : The IDbCommand and IDbConnection implementation in the assembly Oracle.DataAccess could not be found error. The solution is here:

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-19 Thread George Mauer
I fixed it up to this: http://pastebin.com/f3704d5a9 but then is started throwing a NHibernate.HibernateException : The IDbCommand and IDbConnection implementation in the assembly Oracle.DataAccess could not be found error. The solution is here:

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-18 Thread Paul Batum
Hi George, Given that FNH does not have an oracle configuration class, you are going to have to configure NHibernate manually, as you would if you were not using FNH. You'll notice the Fluently.Configure method now has an overload that takes an existing NHibernate.Cfg.Configuration instance. If

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-18 Thread Paul Batum
Alternatively, you can create an OracleConfiguration class based on the SqlLiteConfiguration class, and just change the settings accordingly. Then you could pass it in to the database method: Fluently.Configure() .Database(OracleConfiguration.Standard) .Etc() Paul Batum On Thu, Feb 19, 2009