For code generation a great tool to use is CodeSmith with the NetTiers template. This generates some great custom object datasource controls to use in .aspx pages, which is really great to bind to dataviews etc and can call all types of ...