13
  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?
Nazgul
  • 1,974
  • 4
  • 22
  • 34

3 Answers3

11

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
  • 554,122
  • 78
  • 1,158
  • 1,373
10

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).

yfeldblum
  • 65,165
  • 12
  • 129
  • 169
  • 1
    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 Mar 21 '09 at 19:00
  • 3
    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. – yfeldblum Mar 21 '09 at 20:47
  • 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! – yfeldblum Mar 21 '09 at 20:48
  • 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. – user310291 May 01 '10 at 18:24
3

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
  • 36,468
  • 26
  • 90
  • 114