CodeSmith Template to generate Business Objects from Views: Discovery

Funny how pursuing one area of information leads to other areas of discovery.  I wanted to discuss coding to the .Text Data Provider model in 0.95 and needed to mention how I generated a business object and its collection with CodeSmith.  Then I remember that for the data provider business object Notification I used a template that was close and then edited it. I took the quick-n-dirty approach instead of using a template built specifically for generating a .Text business object.  A template just for .Text business objects is something I could definitely use, but before I wrote the .CST to create the .Text business object myself I thought I check out the available templates at the CodeSmith Forums Shared Templates area. 


First of all, if you don’t use CodeSmith, you need to start.  And if you do use CodeSmith and haven’t checked-out out the CodeSmith Shared Templates area, you need to say hello.  Lots of great stuff there, authors to rap with, and things to learn.


I haven’t tracked down an exact match for the .Text Business Object template I was looking for, but I did see a new post asking if there was a template for generating a Business Object from a view.  Well heck yes!  I wrote one about a year ago and its great!


So what I need to do (and have already started) is to put together a step-by-step on it here at dbvt.com/blog and put the .CST on the forums.   Promise.

Article written by

A long time developer, I was an early adopter of Linux in the mid-90's for a few years until I entered corporate environments and worked with Microsoft technologies like ASP, then .NET. In 2008 I released Sueetie, an Online Community Platform built in .NET. In late 2012 I returned to my Linux roots and locked in on Java development. Much of my work is available on GitHub.