开发者

What is the use of ColumnMappings if I'm obliged to use the same name as the physical column?

开发者 https://www.devze.com 2022-12-09 15:24 出处:网络
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 colum

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

0

精彩评论

暂无评论...
验证码 换一张
取 消