views:

139

answers:

5

I want to develop a C# <-> Database application. I've considered using a ORM creating me classes for transparent access to whatever database I want to connect to.

I found nHibernate. But this seems very heavy and complicated to configure.

My question: Is something out there that is lighter than nHibernate?

Thanks, Andre

Edit: Love your answers. Nearly want to mark everyone as my favourite :)

+4  A: 

You may take a look at Linq to Entities which integrates nicely with Visual Studio.

Darin Dimitrov
There is a significant difference between the first and second versions of Entity Framework (aka LinqToEntities). I cannot recommend the first version (VS 2008 SP1/.NET 3.5) at all.
Michael Maddox
+2  A: 

You can look at this set of posts "Build Your Own Data Access Layer" - it ends up building a lightweight ORM (and was written by one of the nHibernate contributers, Davy Brion).

From microsoft there are EF (entity framework) and Linq2Sql, though not sure that EF constitutes lightweight. See this comparison of EF and nHibernate (biased, as the writer is a heavy nHibernate contributor).

Oded
Why the downvote?
Oded
I don't think agatha is an ORM. It's a RRSL for .net
lomaxx
@lomaxx - quite right. I was thinking about his "Build Your Own DAL" blogs. I thought he released it as "agatha". Answer updated and corrected.
Oded
@oded - downvote removed. That was a pretty cool series too.
lomaxx
+1  A: 

I found Lightspeed really easy to configure and use (much quicker than nHibernate). The express edition is limited to 8 mapped entities though so it is likely to cost you some money.

Andy
+2  A: 

One of the easiest ones I've used is http://www.subsonicproject.com/

lomaxx
A: 

nHibernate is not complicated to configure. But I agree that it's sometimes too much for simple applications.

When I don't use nHibernate, I use simple ADO.NET objects.

When I don't use nHibernate, it's because ORM will be counter productive.

Pierre 303