Question

When developing with .NET 3.5 I naturally use LINQ for data access.

But for .NET 2.0 projects, what data access model is the best one to use? I tend to use TableAdapters mainly, but sometimes also write my own SQL depending on the situation.

Was it helpful?

Solution

Have you tried NHibernate? I haven't used it much myself, but my experience with its Java cousin was very positive.

There are other alternatives such as LLBLGen as well.

It would be very hard to recommend an overall "best" solution without knowing more about the problem though.

OTHER TIPS

CodeSmith is another good tool from what I've heard.

There's no such thing as the best DAL, only the best for the current solution.

We used an in-house one for many years which wasn't too bad but ultimately unmaintainable vs commercial products.

For an MVC style ASP .Net 2.0 application you can use Castle project and ActiveRecord for data access. ActiveRecord can be used separately.

Active Record
"The enterprise data mapping pattern implemented using NHibernate"
http://www.castleproject.org/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top