jonpryor / dblinq2007

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

DBMetal: add option to allow custom word lists to be specified. #210

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a database with a forgeinkey name with a non-ascii character in it. 
2. Run DBMetal against the db.

What is the expected output? What do you see instead?
The result dbml file contains weired casing in the members attribute of the 
association items.  

What version of the product are you using? On what operating system?
DBlinq 0.92 against a sql server 2008

Original issue reported on code.google.com by carl.hoerberg on 11 Mar 2010 at 7:30

GoogleCodeExporter commented 9 years ago
Could you give an example of what kind of foreign key name you are using and 
what you
consider weird casing?
You could try invoking DbMetal with the "--case=leave".

Original comment by anders...@gmail.com on 11 Mar 2010 at 11:18

GoogleCodeExporter commented 9 years ago
"--case=leave" solved it! 

an example would be "FK_Anläggningar_Anläggningskunder" then the resulting 
Association 
member would be: <Association Name="FK_Anläggningar_Anläggningskunder" 
Member="AnLÄGGNInGSkUnD" Storage="_anLäggniNGsKUnD" Type="Anläggningskund" 
ThisKey="AnläggningskundID" OtherKey="ID" IsForeignKey="true" 
Cardinality="Many" />

Original comment by carl.hoerberg on 11 Mar 2010 at 1:06

GoogleCodeExporter commented 9 years ago
Thanks a lot for responding and for the example.

The problem seems to be that your column name is in Swedish and DbMetal 
currently
breaks words based on word lists and only have word lists for English, French 
and
German. So I guess it works as designed.

Maybe a way to load a custom word list should be added so rare words and
abbreviations could be handled on a project-by-project basis.

Original comment by anders...@gmail.com on 11 Mar 2010 at 1:33

GoogleCodeExporter commented 9 years ago

Original comment by jonmpr...@gmail.com on 12 Mar 2010 at 10:28