Configure FluentConfiguration for Microsoft Access

Original Post Vale's Avatar

Vale

21 Apr, 2010 06:54 AM via web

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

  1. Support Staff 2 Posted by Paul Batum on 21 Apr, 2010 10:01 AM

    Paul Batum's Avatar

    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.

  2. Paul Batum resolved this discussion on 16 May, 2010 06:52 AM.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

05 Jul, 2010 10:29 PM
05 Jul, 2010 12:45 PM
05 Jul, 2010 12:42 PM
05 Jul, 2010 12:17 PM
05 Jul, 2010 12:12 PM

 

03 Jul, 2010 12:26 AM
02 Jul, 2010 02:17 PM
02 Jul, 2010 08:18 AM
02 Jul, 2010 12:20 AM
01 Jul, 2010 10:14 PM