This is a migrated thread and some comments may be shown as answers.
Maintaining coding style
1 Answer 24 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nathan J Pledger
Top achievements
Rank 2
Nathan J Pledger asked on 16 Dec 2008, 05:22 PM
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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Jan Blessenohl
Telerik team
answered on 17 Dec 2008, 09:12 AM
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.
Tags
General Discussions
Asked by
Nathan J Pledger
Top achievements
Rank 2
Answers by
Jan Blessenohl
Telerik team
Share this question
or