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 at 10:39 AM, Paul Batum <paul.ba...@gmail.com> wrote: > 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 you create a new > Configuration instance, and set it up for oracle by providing the dialect, > driver, etc ( as you would normally) and then pass it into the aformentioned > overload, you should then be able to follow the remainder of the getting > started tutorial. > > var config = new Configuration(); > SetTheConfigUpForOracle(config); <-- your method > Fluently.Configure(config) > .Mappings( //etc) > ... > > If you haven't set up nhibernate to use Oracle before it should be an easy > thing to google. > > Paul Batum > > > On Thu, Feb 19, 2009 at 8:32 AM, George Mauer <gma...@gmail.com> wrote: > >> >> Almost certainly a stupid question but I can't find the answer >> anywhere. >> >> In the Getting Started tutorial the database is SQLite and so his >> session factory creation >> is done using the SQLiteConfiguration class in the >> FluentNHibernate.Cfg.Db namespace >> >> Great! But I don't see a Configuration class for using an Oracle >> database. How do I do this? >> >> (sorry if this is a double post, I did not see it pop up and assume I >> had clicked cancel by accident) >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---