How can I turn off underscores in generated code

Posts   
 
    
sevenalive
User
Posts: 3
Joined: 25-Jun-2013
# Posted on: 26-Jun-2013 01:47:11   

I don't like underscores for naming. It's not standard C# naming convention either.

Is there a way to turn off underscores and use automatic properties?

Using .net 4.5 Fluent NHibernate generated code.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 26-Jun-2013 07:42:06   

Could you please give us an example? For instance: what is the column name in the DB, what is the mapped field name in your LLBLGenPro model? and What is the resulting name on the generated code?

If you go to Project->Settings->Element name construction, there are options to enforce pascal casing and remove underscores from element names. The entity field names should be the ones used to generate the code.

David Elizondo | LLBLGen Support Team