Jeff-Lewis / codesmith

Automatically exported from code.google.com/p/codesmith
0 stars 0 forks source link

Entity Naming Conventions #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Database has Table called Organisation
2. In dbml settings Table Naming is set to Singular
3. In dbml settings Entity Naming is set to Plural
4. In dbml settings Association Naming is set to ListSuffix

What is the expected output? What do you see instead?

If I issue the statement 

from o in Organisations select o; 

This is ok but i'd expect

var o = new Organisation();  

NOT 

var o = new Organisations();  

What version of the product are you using? PLINQO v3.0.687

Please provide any additional information below.

So Singluar Tables Names, Singluar Enttity Names, Plural Entity 
Collections.

Regards

Tobi

Original issue reported on code.google.com by toby.ri...@gmail.com on 22 Jun 2009 at 4:51

GoogleCodeExporter commented 9 years ago

Original comment by tdupont...@gmail.com on 29 Jun 2009 at 7:25

GoogleCodeExporter commented 9 years ago
3. In dbml settings Entity Naming is set to Plural

If you set the Entity Naming to singular, you should see the

var o = new Organisation(); 

you are expecting.

Original comment by shannon....@gmail.com on 30 Jun 2009 at 3:32

GoogleCodeExporter commented 9 years ago
Assuming the response here worked for you.

Original comment by shannon....@gmail.com on 28 Aug 2009 at 4:33