What is the use of ColumnMappings if I'm obliged to use the same name as the physical column?
In my last question, Is there a bug in .NET ColumnMappings class?
it seems that I cannot use a colummapp开发者_JAVA百科ing with a different name than the physical name, then what is the use of columnmappings ?
The DataTableMapping and DataColumnMapping's define the mapping that the framework uses when filling your dataset with data from the data source. They are meant to be be set before you fill your dataset, and therefore your code in the previous question does not work.
Have a look at this DataTableMapping example on MSDN
精彩评论