views:

1463

answers:

3
  1. Can NHibernate be used as ORM tool for MS Access? We are using Nhibernate to access Sql Server, so wondering if it can be reused.
  2. If it can be used how has the experience been?
+3  A: 

Here are the details of using NHibernate with MS Access. I personally haven't done this, as MS Access doesn't include main full database options like stored procedures, etc, so I typically avoid it.

Reed Copsey
When you say "MS Access" you mean "Jet".
David-W-Fenton
True. I used MS Access to keep it in the same form as the question, but it's really using NHibernate with the JET db engine Access uses.
Reed Copsey
A: 

It can be used with MS Access. The experience is like any other experience using MS Access as a database for your application, you wish you used something else.

Vasil
+4  A: 

I have used NHibernate with Access. Based on my experience,

  • I recommend using NHibernate.
  • I recommend avoiding Access.

If you need a file-based in-process mini-database, there are a number of options available, including SQL Server CE (Microsoft, proprietary), Firebird (free-open-source), SQLite (free-open-source). NHibernate supports all these database engines (although I have not had a chance to use them).

Justice
The reason we want to go for MS Access is the because we are mainly writing MS Office Plug in related applications. Since MS Access comes with Office installation we don't have to install some other database in hundreds of machines (on every client laptop!). Anyway why should we not use Access?
Nazgul
You don't have to "install" SQLite in your client's machines. All you have to do is package the sqlite .dll file with your mail plugin .dll and you're good to go.
Justice
I assume Firebird and SQLServerCE work the same but I'm not sure. But that's what makes these things "embedded" databases - you can "embed" them right into your software!
Justice
Why do you want to avoid MS Access ? MS Access is free as database format so I can't see any advantage using other format.