Re: Issue 105 in dblinq2007: DbMetal naming conventions

24 views
Skip to first unread message

dblin...@googlecode.com

unread,
Jan 15, 2010, 11:04:11 PM1/15/10
to dblin...@googlegroups.com
Updates:
Status: Accepted

Comment #2 on issue 105 by jonmpryor: DbMetal naming conventions
http://code.google.com/p/dblinq2007/issues/detail?id=105

/language=ivl no longer seems to work, and DbMetal still generates bizarro-
capitalization. This still needs improvement.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

dblin...@googlecode.com

unread,
Jan 16, 2010, 9:57:06 PM1/16/10
to dblin...@googlegroups.com

Comment #3 on issue 105 by ferhrosa: DbMetal naming conventions
http://code.google.com/p/dblinq2007/issues/detail?id=105

I've seen that you can leave the capitalization as the original by passing
the
parameter "/case=leave", but the underscores continues to be removed in the
name of
the classes...

dblin...@googlecode.com

unread,
Jan 17, 2010, 5:54:52 AM1/17/10
to dblin...@googlegroups.com

Comment #4 on issue 105 by ferhrosa: DbMetal naming conventions
http://code.google.com/p/dblinq2007/issues/detail?id=105

I've downloaded the source code and debuged it.
If the this code is putted in "NameFormatter.GetTableName" method the
original table
names are returned:

if (nameFormat.Case == Case.Leave) {
tableName.ClassName = dbName;
tableName.MemberName = dbName;
} else {
tableName.NameWords = ExtractWords(words, dbName,
extraction);
// if no extraction (preset name, just copy it)
if (extraction == WordsExtraction.None)
tableName.ClassName = tableName.DbName;
else
tableName.ClassName = Format(words, tableName.NameWords,
nameFormat.Case, GetSingularization(Singularization.Singular, nameFormat));
tableName.MemberName = Format(words, tableName.NameWords,
nameFormat.Case, GetSingularization(Singularization.Plural, nameFormat));
}

But I don't know if this could affect other parameters...
The same must be made for the other name formatter methods to have the same
names of
the database in another items.

dblin...@googlecode.com

unread,
Jan 19, 2010, 3:18:26 PM1/19/10
to dblin...@googlegroups.com

Comment #5 on issue 105 by jonmpryor: DbMetal naming conventions
http://code.google.com/p/dblinq2007/issues/detail?id=105

Issue 178 has been merged into this issue.

dblin...@googlecode.com

unread,
Jan 25, 2010, 5:49:43 PM1/25/10
to dblin...@googlegroups.com
Updates:
Owner: ---

Comment #6 on issue 105 by jonmpryor: DbMetal naming conventions
http://code.google.com/p/dblinq2007/issues/detail?id=105

(No comment was entered for this change.)

dblin...@googlecode.com

unread,
Feb 9, 2011, 9:40:23 AM2/9/11
to dblin...@googlegroups.com

Comment #7 on issue 105 by pilichow...@gmail.com: DbMetal naming conventions
http://code.google.com/p/dblinq2007/issues/detail?id=105

I can confirm it.

This is not compatible with SQLMetal.

Consider such name -- art_AgentVersion

With SQLMetal I would get: Art_AgentVersion
But with DBMetal I get: ArtAgentVersion (underscore removed)

DBLinq 0.20.1

dblin...@googlecode.com

unread,
Feb 9, 2011, 1:36:54 PM2/9/11
to dblin...@googlegroups.com

Comment #8 on issue 105 by pilichow...@gmail.com: DbMetal naming conventions
http://code.google.com/p/dblinq2007/issues/detail?id=105

PS. Other oddities:
Id is converted to ID
URL is converted to Url (please note the asymmetry)

Btw. it is not the problem with an option (using it or not), simply put the
output should be the same as SQLMetal creates (in default run). Otherwise
it is troublesome to migrate projects from SQLMetal to DBMetal.

Frank Tzanabetis

unread,
Sep 5, 2012, 10:59:41 PM9/5/12
to dblin...@googlegroups.com, codesite...@google.com, dblin...@googlecode.com
Any chance this might get fixed?

dblin...@googlecode.com

unread,
Jul 3, 2014, 11:25:33 AM7/3/14
to dblin...@googlegroups.com

Comment #9 on issue 105 by gsovat...@gmail.com: DbMetal naming conventions
http://code.google.com/p/dblinq2007/issues/detail?id=105

regarding the table and column names with underscores, I made the following
change:

File: src/DBLinq/Schema/Implementation/NameFormatter.cs

Line: 262

Change "else if (currentChar != '_' && !char.IsSeparator(currentChar))" to
"else if (!char.IsSeparator(currentChar))"

I removed the underscore check from there and it played nicely!


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages