G
Guest
I found a bug in the SQLHelper.FillDataSet method. I googled it but didn't find it and I didn't see anyway to provide feedback to MS so I'm posting it her
When filling a typed dataset that has more than two tables the table mapping doesn't work for any tables after the second table
The problem is on line 184
1835: string tableName = "Table"
1836: for (int index=0; index < tableNames.Length; index++
1837:
1838: if( tableNames[index] == null || tableNames[index].Length == 0 ) throw new ArgumentException( "The tableNames parameter must contain a list of tables, a value was provided as null or empty string.", "tableNames" )
1839: dataAdapter.TableMappings.Add(tableName, tableNames[index])
1840: tableName = (index + 1).ToString()
1841:
The tableName variable changes like so on each iteratio
Tabl
Table
Table1
Table12
....
It should change like
Tabl
Table
Table
Table
....
So 1840 should b
tableName = "Table" + (index + 1).ToString()
ConradF
When filling a typed dataset that has more than two tables the table mapping doesn't work for any tables after the second table
The problem is on line 184
1835: string tableName = "Table"
1836: for (int index=0; index < tableNames.Length; index++
1837:
1838: if( tableNames[index] == null || tableNames[index].Length == 0 ) throw new ArgumentException( "The tableNames parameter must contain a list of tables, a value was provided as null or empty string.", "tableNames" )
1839: dataAdapter.TableMappings.Add(tableName, tableNames[index])
1840: tableName = (index + 1).ToString()
1841:
The tableName variable changes like so on each iteratio
Tabl
Table
Table1
Table12
....
It should change like
Tabl
Table
Table
Table
....
So 1840 should b
tableName = "Table" + (index + 1).ToString()
ConradF