Fill(DataSet, int, int, string, OracleRefCursor)
This method adds or refreshes rows in a specified range in the DataSet to match rows in the provided OracleRefCursor object.
Declaration
// C# public int Fill(DataSet dataSet, int startRecord, int maxRecords, string srcTable, OracleRefCursor refCursor);
Parameters
-
dataSetThe
DataSetobject being populated. -
startRecordThe record number to start with.
-
maxRecordsThe maximum number of records to obtain.
-
srcTableThe name of the source table used in the table mapping.
-
refCursorThe
OracleRefCursorthat rows are being retrieved from.
Return Value
This method returns the number of rows added or refreshed in the DataSet. This does not include rows affected by statements that do not return rows.
Exceptions
ArgumentNullException - The dataSet or refCursor parameter is null.
InvalidOperationException - The OracleRefCursor is already being used to fetch data or the source table name is invalid.
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.