Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Apr 24, 2015 · 4 comments
Open

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

"--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
Copy link
Author

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
Copy link
Author

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

  • Changed title: DBMetal: add option to allow custom word lists to be specified.
  • Added labels: Component-DbMetal, Priority-Low, Type-Enhancement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant