6.6.5.2 Fill(DataTable, OracleRefCursor)
This method adds or refreshes rows in the specified DataTable to match those in the provided OracleRefCursor object.
Declaration
// C# public int Fill(DataTable dataTable, OracleRefCursor refCursor);
Parameters
-
dataTableThe
DataTableobject being populated. -
refCursorThe
OracleRefCursorthat rows are being retrieved from.
Return Value
The number of rows added to or refreshed in the DataTable.
Exceptions
ArgumentNullException - The dataTable or refCursor parameter is null.
InvalidOperationException - The OracleRefCursor is already being used to fetch data.
NotSupportedException - The SafeMapping type is not supported.
Remarks
No schema or key information is provided, even if the Fill method is called with MissingSchemaAction set to MissingSchemaAction.AddWithKey.