Change the generated EntityName

Posts   
 
    
Jowen
User
Posts: 47
Joined: 06-Feb-2007
# Posted on: 09-Jan-2010 23:29:55   

I want to have another generated name for my entities. By default, it's <EntityName>Entity, but I just want it to be <EntityName>.

I can do this by manually modifying all the templates.... but is there a variable defined for this so I can modify it one place?!

regards, Jowen

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39863
Joined: 17-Aug-2003
# Posted on: 10-Jan-2010 12:27:47   

No, it's not defined in a variable. the reason the suffix is introduced is that it avoids name clashes in the code at compile time. We therefore wont remove the suffix nor make it a configurable element, as it will sooner or later lead to name clashes in the generated code and thus frustration for the user of llblgen pro.

In C# it's a little easier to avoid name clashes as the compiler is smarter, but in VB.NET, it's not easy, as it will for example make mistakes between class references and property names.

You're not the first who asks this, and I'm sure not the last either wink . We can't make the change (we tried, it leads to too much problems which pop up after code has been generated).

Frans Bouma | Lead developer LLBLGen Pro
Jowen
User
Posts: 47
Joined: 06-Feb-2007
# Posted on: 10-Jan-2010 13:21:34   

hmmm. I found out the hard way that it leads to compiler errors. 3 hours of my life I'll never get back simple_smile

There are scenarios where a rename is safe, but I understand you have to protect the users from messing things up.

Tnx for your reply!