If a table name, ends with a spacing character like '_', magmawords
throws an exception.
i have worked around this by changing AbstractWords.GetWords
public virtual IList<string> GetWords(string text)
{
text = text.TrimEnd(' ', '_'); // Line added to protect
names that end with _
var context = new Context();
IList<string> words = new List<string>();
int lastIndex = 0;
for (int index = 0; index <= text.Length; index++)
{
if (index == text.Length || !
char.IsLetterOrDigit(text[index]))
{
GetMagmaWords(text.Substring(lastIndex, index -
lastIndex), words, context);
lastIndex = index + 1;
}
}
return words;
}
i know this is now a optimal resolve, since i do not know were else
this function is used.
Know problems,
if you have table Like "Teste" and "Teste_" there will probably be a
naming concision.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DbLinq" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/dblinq?hl=en
-~----------~----~----~----~------~----~------~--~---