views:

118

answers:

4

Which one is the best .NET ORM for using in a Windows Forms application?

I like NHibernate, but it seems that NHibernate is mostly used in web applications.

+3  A: 

NHibernate should work just fine in a forms application. You're storing and retrieving data against a database; it doesn't matter whether you throw that data through a web application, a forms application, write it to a text file, print it out, use it to control a nuclear power plant, whatever.

tdammers
Agreed, the ORM and the UI shouldn't even be part of the same equation. There's no reason NHibernate can't be used here.
David
A: 

I have been using Entityspaces http://www.entityspaces.net for over 3 years now. Easy to use, easy to extend, relatively inexpensive, excellent performance, excellent support, and it is always being improved.

quimbo
A: 

Why not ADO.NET Entity Framework?

gsharp
A: 

There's no reason to not use NHibernate in a WinForms app. Nothing really ties NHibernate to the web. If you are already comfortable with it and like it, you can continue to use it on the desktop without fear.

If you just want to see your other options, then refer to other SO questions:

What are your favorite .NET Object Relational Mappers (ORM)?

Best Performing ORM for .NET

Andy_Vulhop