Configure FluentConfiguration for Microsoft Access
Hi,
I have a legacy system with a Microsoft Access database; I'm refactoring a WPF application.
I'd like to know how can I translate those code lines from Sql2005 to Microsoft Access.
FluentConfiguration configuration = Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2005.ConnectionString(c => c.FromConnectionStringWithKey("default")).ShowSql());
Thank you a lot
Valeria
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Paul Batum on 21 Apr, 2010 10:01 AM
You don't have to use our fluent configuration API to specify the database settings. You can use the normal nhibernate approach which is to use an xml file. I did a quick google and found this sample for using NH with Access, so that is probably a good place to start from.
The key thing to realise is that when you call Fluently.Configure, you can pass in a configuration object that you've specifically setup as necessary. I suggest you try initializing a configuration object using an xml file with the relevant settings and then pass it to Fluently.Configure.
Paul Batum resolved this discussion on 16 May, 2010 06:52 AM.