I need one of the most knowledgeable people for using merge strategies within codesmith + nettiers to help me work through some initial setup issues and possibly through some specific customizations for an application I've generated.
Assuming the individual can help me out (I basically need some help getting the merge strategy setup and figuring out where best to customize/individualize some pages/functionality in the auto-generated "admin" website) I would be more than willing to compensate at a good rate. I would need to be able to speak with the person by telephone from within the U.S.
Basically, I understand how to customize the partial classes - I do so on the non-generated part of the class and CodeSmith never overwrites that. However, I would also like to use region-naming merge so that I can name regions "Custom" + "whatever" where "whatever" is replaced with numbers or something, and have Codesmith regenerate the entire admin site while respecting those regions (not overwriting them). I couldn't get this to work using my one .cst file that generates the whole admin website, even after creating a .csp file and adding this: "mergeType="PreserveRegions" mergeInit="RegionNameRegex=.*(?i:Custom).*;Language=C#;" into the csp file. I tried naming the regions with "Custom" and/or with "Custom -" as was posted in one forum, neither worked. I tried adding this to the entitymaster.cst file as posted elsewhere:
EntityTemplate entityTemplate = new EntityTemplate();
entityTemplate.EntityElement = entity;
// Use a preserve regions merge strategy to preserve all of the custom regions in our entity classes when they are re-generated.
PreserveRegionsMergeStrategy strategy = new PreserveRegionsMergeStrategy("^[ \t]*(?i:Custom)", "C#");
entityTemplate.RenderToFile(outputDirectory + entity.Name + ".cs", strategy);
Even if that stuff had worked, would it only have allowed custom region naming in the items that inherit from entity? I was hoping to preserve custom code in the gridviewsearchpanel composite control - how would I do that?
Obviously, there is something I'm overlooking in all this, but I can't seem to find any good, current, complete, single-source documentation on how to do this. I've looked at these so far:
http://community.codesmithtools.com/forums/p/416/4059.aspx
http://community.codesmithtools.com/forums/p/3238/13768.aspx
http://community.codesmithtools.com/forums/p/2326/21154.aspx
http://community.codesmithtools.com/search/SearchResults.aspx?q=preserve+AND+sectionid%3a3&o=Relevance
and
http://community.codesmithtools.com/search/SearchResults.aspx?q=preserve&o=Relevance
If someone just had a complete guide to post or if someone who knows wants to make some cash, get in touch email at dansmail29 AT gmail.com
I'm a little tight on time, so sooner would be even more appreciated!
Thanks,
Dan