Coolness of SubSonic
From my last post
SQL Parameters in C# I mentioned that I wanted to learn an ORM package. Well I took a quick glance at
NHibernate and got overwhelmed and decided to take a look at
SubSonic as I have heard a lot of good things about it. Well I am happy to say I doubt I will EVER do database access by hand ever again if I can help it. As such I figured I would make a code post on some
SubSonic code. I am not really going to explain it just want to show you how easy, cool and simple it is. I'll show the code starting with my .aspx main aspx page code, the code behind then the data access layer code.
I am also including the project I used too. Be sure you have Northwind database.
I suggest you download, install, and start using SubSonic. It is a great framework to help generate and create your DAL. Once you have it I suggest you watch the screencast on the using the Query Tool. If you would like me to explain this code i'd be more than happy to just let me know and I'll make another post.
SubSonicTest.zip (188.54 kb)