开发者

Naming tables returned from Oracle

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜