jonpryor / dblinq2007

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

[Enhancement] DBMetal naming conventions similar to Visual Studio's #242

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

1. Suppose there is a table column named 'MyIPAddress'. The class field 
generated by DBMetal is not 'MyIPAddress' but instead something like 
'MyiPaDdress'. 
Of course, naming the column 'MyIpAddress' (as Microsoft recommends) will 
work OK with DBMetal, but still Visual Studio can generate the correct class 
field in both cases.

2. Visual studio LINQ to SQL class generator conveniently adds a plural 's' 
in the generated class name for the DB table. 
For example, if we have a table in the SQLServer named 'Customer', Visual 
Studio will conveniently name the class 'Customers'.

Original issue reported on code.google.com by tzograp...@gmail.com on 17 Apr 2010 at 10:42

GoogleCodeExporter commented 9 years ago
(1) is a dup of Issue 105, and does need fixing.

(2) can be obtained via the /pluralize option.  By default, table names are not 
pluralized.

Original comment by jonmpr...@gmail.com on 18 Apr 2010 at 1:51