Maintaining coding style

2 posts, 1 answers
  1. Nathan J Pledger
    Nathan J Pledger avatar
    95 posts
    Member since:
    Apr 2006

    Posted 16 Dec 2008 Link to this post

    Hi,

    Loving the new site and the acquisition of OpenAccess. Well done.

    Just getting started in it and I have a quick question. Our internal coding style seems to be different from the generated code by OpenAccess ORM. (I am using the Express version, for now). For instance, we prefer our private members to be prefixed by an underscore (_), eg:

            private Guid _id; // pk   
            private string _baseUrl;  
            private string _siteName;  
            private string _theme; 

    But OpenAccess Code Generation produces:

            private Guid id; // pk   
            private string baseUrl;  
            private string siteName;  
            private string theme; 

    Is there anyway to modify the style of output code to coincide our internal coding standards?
  2. Answer
    Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 17 Dec 2008 Link to this post

    Hello Nathan,
    There is a chapter in the programmer's guide explaining how you can modify the reverse engineering template files. If you look into the VB version of the templates you can see how the _ can be added.

    Kind regards,
    Jan Blessenohl
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
Back to Top