EntityNameStripPattern - Replace?

Posts   
 
    
RaFaLe avatar
RaFaLe
User
Posts: 27
Joined: 26-Oct-2006
# Posted on: 27-Oct-2006 09:15:56   

Hi,

I'm using LLBLGen Pro v 2.0.0.0 Oct 23 2006.

I have my EntityNameStripPattern set up as {tbl_, Tbl, lst, map, dat}{Entity}.

For m:m tables named table1_table2 I've noticed that the entity is still named table1table2.

2 Questions:

1.  Is there a way to overcome GenPro stripping out the "_" by default?
2.  Is there a way to say that for every "_", replace it with a "2"?

Thanks in Advance.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 27-Oct-2006 10:15:37   
  1. Is there a way to overcome GenPro stripping out the "_" by default?

There is a property (Prefereces/Project properties), called **RemoveUnderscoresFromElementName **

When set to true, all single underscores in names of new entities, entity fields, typed views etc. will be removed. When set to false, the name is left untouched. A new project will inherit this value. Default is true.

  1. Is there a way to say that for every "_", replace it with a "2"?

I think you can create an add-in to the designer to perform this task.

RaFaLe avatar
RaFaLe
User
Posts: 27
Joined: 26-Oct-2006
# Posted on: 27-Oct-2006 10:24:09   

Excellent. Thanks Walaa.

I'll work on the add-in thing in the meanwhile. Can you point me to some documentation or processes on creating this add-in (for renaming)?

Filomeno
User
Posts: 14
Joined: 24-Oct-2007
# Posted on: 24-Oct-2007 10:34:54   

Hello, Is there a way to Replace the Entity Naming Convention?Like changing the generated classes name.

ex: Table Name: Customer Generated Entity Class: CustomerEntity

Instead, I want to replace the generated CustomerEntity to CustomerEN. Is that possible?How?

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 24-Oct-2007 12:52:24   

You will have to modify the code generation templates.

Please check the following thread: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=6098

Filomeno
User
Posts: 14
Joined: 24-Oct-2007
# Posted on: 14-May-2008 09:50:02   

Yeah I already found the solution for that by modifying the templates using template studio..

Thanks