When I examine the .Columns property of one of my business entities I had missing values for Table and PropertyName. I get the right count of records back from things like Take(5) but all 5 objects will be full of empty strings and 0 values.
Just tried it with another SQL connection and same thing? Where should I start troubleshooting this?
ADDITIONAL INFO and CODE:
// Replacing the CleanUp function seems to be cause
// What am I doing here that is not allowed?
// I'm dealing with Table names like USER_DETAILS and would prefer UserDetail
// rename standard CleanUp to CleanUp2 then paste this into Settings.ttinclude
string CleanUp(string tableName)
{
string res = tableName;
//capitalization
char[] ca = res.ToLower().ToCharArray();
for (int i = 0; i < ca.Length; i++) {
if ((i == 0) || (ca[i - 1] == '_')) {
ca[i] = char.ToUpper(ca[i]);
}
}
res = new string(ca);
//strip underlines
res = res.Replace("_","");
//strip blanks
res = res.Replace(" ","");
return res;
}
SOLVED (sort of): Looks like it is the removal of the underlines that causes everything to go south. Rob, any chance this could work in a later version? I'd be glad to help if you could point me in the right direction in the source.