开发者

Naming tables returned from Oracle

开发者 https://www.devze.com 2023-03-21 21:08 出处:网络
I\'m using the Oracle data libraries in .NET to get multiple tables returned from a Procedure (as multiple Out cursors). This data is being inserted into a DataSet. Th开发者_开发问答e problem I\'m hav

I'm using the Oracle data libraries in .NET to get multiple tables returned from a Procedure (as multiple Out cursors). This data is being inserted into a DataSet. Th开发者_开发问答e problem I'm having is that the tables are named Table, Table1, Table2, etc. Is there some way (through the Oracle data adapter or otherwise) to rename these tables before they go into the DataSet?


I think this may be what you need DataAdapter.TableMappings.Add("Table","MyTableName")

See: http://msdn.microsoft.com/en-us/library/system.data.common.dataadapter.tablemappings.aspx

0

精彩评论

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

关注公众号