Weird Column Re-casing when I Run DBMetal

23 views
Skip to first unread message

bryan costanich

unread,
Dec 11, 2008, 6:53:19 PM12/11/08
to DbLinq
When i run DBMetal, sometimes i get weird column recasing. for
example:
CCPurchaseLimit becomes CcpUrchaseLimit.

instead of renaming, can't we just preserve the casing?

Pascal Craponne

unread,
Dec 13, 2008, 7:19:56 AM12/13/08
to dbl...@googlegroups.com
DbMetal uses a culture information to add casing when there is none.
Since it is an algorithm that tries to extract words from a dictionary, it sometimes has problems doing this, especially when there are codes (like the CC in your example) in column names.

The parameter /culture allows to change the language (are currently supported "en" which is the default, but also "fr" and "de"). If you want to disable the language, try the invariant culture, with /language=IVL

Pascal.

jabber/gtalk: pas...@jabber.fr
msn: pas...@craponne.org

bryan costanich

unread,
Dec 13, 2008, 3:41:14 PM12/13/08
to DbLinq
If i disable the language, will it preserve casing?

On Dec 13, 4:19 am, "Pascal Craponne" <pic...@gmail.com> wrote:
> DbMetal uses a culture information to add casing when there is none.Since it
> is an algorithm that tries to extract words from a dictionary, it sometimes
> has problems doing this, especially when there are codes (like the CC in
> your example) in column names.
>
> The parameter /culture allows to change the language (are currently
> supported "en" which is the default, but also "fr" and "de"). If you want to
> disable the language, try the invariant culture, with /language=IVL
>
> Pascal.
>
> jabber/gtalk: pas...@jabber.fr
> msn: pas...@craponne.org
>

bryan costanich

unread,
Dec 13, 2008, 3:41:32 PM12/13/08
to DbLinq
And how will that affect pluralization?

Pascal Craponne

unread,
Dec 13, 2008, 6:18:43 PM12/13/08
to dbl...@googlegroups.com
It just won't pluralize/singularize.

Pascal.

jabber/gtalk: pas...@jabber.fr
msn: pas...@craponne.org



bryan costanich

unread,
Dec 13, 2008, 10:19:06 PM12/13/08
to DbLinq
so it would be cool to be able to turn the casing stuff of and still
have the pluralization working.

On Dec 13, 3:18 pm, "Pascal Craponne" <pic...@gmail.com> wrote:
> It just won't pluralize/singularize.
> Pascal.
>
> jabber/gtalk: pas...@jabber.fr
> msn: pas...@craponne.org
>

Pascal Craponne

unread,
Dec 14, 2008, 3:02:03 AM12/14/08
to dbl...@googlegroups.com
This doesn't make sense: to pluralize a word you need to have a language (pluralization rules differ from one language to another).

Pascal.

jabber/gtalk: pas...@jabber.fr
msn: pas...@craponne.org



bryan costanich

unread,
Dec 15, 2008, 7:09:33 PM12/15/08
to DbLinq
Yeah, that's what i'm asking. It seems to me, these two features need
to be separated. I would love to have pluralization, i just don't want
dbmetal to hork up my casing.

On Dec 14, 12:02 am, "Pascal Craponne" <pic...@gmail.com> wrote:
> This doesn't make sense: to pluralize a word you need to have a language
> (pluralization rules differ from one language to another).
> Pascal.
>
> jabber/gtalk: pas...@jabber.fr
> msn: pas...@craponne.org
>

Pascal Craponne

unread,
Dec 17, 2008, 10:20:04 AM12/17/08
to dbl...@googlegroups.com
Pluralization works only on well-understood (by DbMetal) words, just like capitalization. Chances are that if capitalization doesn't work, pluralization won't either.

Pascal.

jabber/gtalk: pas...@jabber.fr
msn: pas...@craponne.org



bryan costanich

unread,
Dec 18, 2008, 7:00:35 PM12/18/08
to DbLinq
I'd still like to be able to turn one off and one on, especially given
the fact that pluralization is important on table names (where the
words are likely to make sense) and not columns (where the words may
make no sense at all).


On Dec 17, 7:20 am, "Pascal Craponne" <pic...@gmail.com> wrote:
> Pluralization works only on well-understood (by DbMetal) words, just like
> capitalization. Chances are that if capitalization doesn't work,
> pluralization won't either.
>
> Pascal.
>
> jabber/gtalk: pas...@jabber.fr
> msn: pas...@craponne.org
>
Reply all
Reply to author
Forward
0 new messages