Trying to create ulimate, the best, perfect DAL seems a little crazy - there are so many different application scenarios with different and competing requirements and needs that I donβt believe that anyone can come up with THE ONE final DAL.
You need to check some of the existing ORM tools, find out one or two of them, find out their strengths and, possibly, weaknesses, and then be able to choose the best one for each specific situation. I doubt it will always be the same .....
SubSonic is great for small, nimbler projects - like Linq-to-SQL if you use SQL Server as your backend. If you need more business opportunities, you should look at NHibernate, the ADO.NET Entity Framework, or other larger, more capable players (which are too complex and poorly suited for a small simple scenario).
I donβt think that THE THE ideal way to create DAL is there - find out what is available, find out how to choose the one that best suits your current needs, and do not reinvent yourself - use what is available there!
Mark
source share