Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Fill() [3/11]

virtual int System.Data.Common.DbDataAdapter.Fill ( DataSet dataSet,
int startRecord,
int maxRecords,
string srcTable,
IDbCommand command,
CommandBehavior behavior )
inlineprotectedvirtual

Definition at line 460 of file DbDataAdapter.cs.

461 {
462 long scopeId = DataCommonEventSource.Log.EnterScope("<comm.DbDataAdapter.Fill|API> {0}, dataSet, startRecord, maxRecords, srcTable, command, behavior={1}", base.ObjectID, behavior);
463 try
464 {
465 if (dataSet == null)
466 {
467 throw ADP.FillRequires("dataSet");
468 }
469 if (startRecord < 0)
470 {
471 throw ADP.InvalidStartRecord("startRecord", startRecord);
472 }
473 if (maxRecords < 0)
474 {
475 throw ADP.InvalidMaxRecords("maxRecords", maxRecords);
476 }
477 if (string.IsNullOrEmpty(srcTable))
478 {
479 throw ADP.FillRequiresSourceTableName("srcTable");
480 }
481 if (command == null)
482 {
483 throw ADP.MissingSelectCommand("Fill");
484 }
486 }
487 finally
488 {
489 DataCommonEventSource.Log.ExitScope(scopeId);
490 }
491 }
int FillInternal(DataSet dataset, DataTable[] datatables, int startRecord, int maxRecords, string srcTable, IDbCommand command, CommandBehavior behavior)

References System.Data.Common.DbDataAdapter.FillInternal(), System.Data.Common.ADP.FillRequires(), System.Data.Common.ADP.FillRequiresSourceTableName(), System.Data.Common.ADP.InvalidMaxRecords(), System.Data.Common.ADP.InvalidStartRecord(), System.Data.DataCommonEventSource.Log, and System.Data.Common.ADP.MissingSelectCommand().