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