Reverse engineering naming algorithm

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
asaake
Posts: 17
Joined: Tue 25 Mar 2008 16:51

Reverse engineering naming algorithm

Post by asaake » Wed 14 Jan 2009 16:30

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

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Wed 14 Jan 2009 17:26

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.

asaake
Posts: 17
Joined: Tue 25 Mar 2008 16:51

Post by asaake » Fri 16 Jan 2009 09:04

Thank you!

It works.

Andreas

Post Reply