Page 1 of 1

Reverse engineering naming algorithm

Posted: Wed 14 Jan 2009 16:30
by asaake
Hi,

I'm generating entities for Oracle tables from my database and didn't check any option for changing table names or field names.

In Entity Developer the table names are unchanged.

After generating code, I see in MyContext.cs:

Table KON -> Entity KONs
Table MW -> Entity MW
Table BKEY -> Entity BKies

It seems that the generation process adds a to all table names with an impair name length and tries to guess a name, if it ends with Y.

Can I disable that?

Best regards,
Andreas

Posted: Wed 14 Jan 2009 17:26
by Paul
Try to use the following steps:
1. Backup Template folder (in Entity Developer)
2. Remove all references to GetPluralName function in Template you use (CS or VB)
3. Restart Developer and try to Generate with reformed template.
4. If it won't help then restore the backup. Otherwise enjoy generated classes.

Posted: Fri 16 Jan 2009 09:04
by asaake
Thank you!

It works.

Andreas