StrataFrame Forum

Code Regions

http://forum.strataframe.net/Topic418.aspx

By Larry Caylor - 1/6/2006

I’m looking for a way to enforce basic code structure among developers.

It would be nice to have some way of customizing the Regions that are created when a new Business Object is added to a project. In addition to the ones currently created I’d like a Business Rules Region, Custom Fields, etc.  Other people may want something different.  

By StrataFrame Team - 1/24/2006

You can change the business object template within the C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache\CSharp\1033 folder. If you didn't install Visual Studio to the default folder, then alter that path correspondingly. Within this folder, you will find a folder for each object. Open up the SF_BusinessObject.zip folder and modify the component.cs file to have the regions you want. We do this with most of the default .NET templates (like Class.vb) so that we can start the new object off with our default regions.



Don't forget to save the regions you entered, as you'll have to re-do this process if you uninstall/reinstall StrataFrame because it re-deploys the templates which will overwrite your changes.



P.S. Sorry about the slow response... this post didn't show up in my "Recent Posts" list, so it never got answered Ermm
By Larry Caylor - 1/24/2006

Thanks... works greatSmile

-Larry