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
精彩评论