A Rapid Development Framework for Community Server

Composite Update Object Template Updated

The next Drive Template Library update (v1.0.3) will contain an updated Update Object composite CodeSmith template.  Composite templates refer to the generation of a complete process, in this case, generating all of the code used in 1) calling an Action Class* method from a control or csmodule, 2) handing off the object to the data provider, and 3) creating the provider interface and override method to update the object in the database.

When I used the Update composite this morning I realized it was from "earlier composite days," when I was still refining the logic and the properties used in the CodeSmith template.  I used a complete method call initially, but abandoned that for more simple property entry with later composites.  An important efficiency in using CodeSmith is using simple properties to the template.  You'll see the old and the new below.

I also created a new "Create CSModule" template which I'll blog about later.  It will likewise be included in v1.0.3 which I anticipate getting online this weekend (Nov 20/21).

* Action Class (like Composite Templates) is my own terminology, referring to those classes at the root of a Community Server application project which handle the interaction between the UI and data provider.




Posted Nov 19 2008, 07:09 AM by daveburke
Filed under: