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

◆ FillSchema() [2/7]

virtual DataTable[] System.Data.Common.DbDataAdapter.FillSchema ( DataSet dataSet,
SchemaType schemaType,
IDbCommand command,
string srcTable,
CommandBehavior behavior )
inlineprotectedvirtual

Definition at line 323 of file DbDataAdapter.cs.

324 {
325 long scopeId = DataCommonEventSource.Log.EnterScope("<comm.DbDataAdapter.FillSchema|API> {0}, dataSet, schemaType, command, srcTable, behavior={1}", base.ObjectID, behavior);
326 try
327 {
328 if (dataSet == null)
329 {
330 throw ADP.ArgumentNull("dataSet");
331 }
332 if (SchemaType.Source != schemaType && SchemaType.Mapped != schemaType)
333 {
334 throw ADP.InvalidSchemaType(schemaType);
335 }
336 if (string.IsNullOrEmpty(srcTable))
337 {
338 throw ADP.FillSchemaRequiresSourceTableName("srcTable");
339 }
340 if (command == null)
341 {
342 throw ADP.MissingSelectCommand("FillSchema");
343 }
344 return (DataTable[])FillSchemaInternal(dataSet, null, schemaType, command, srcTable, behavior);
345 }
346 finally
347 {
348 DataCommonEventSource.Log.ExitScope(scopeId);
349 }
350 }
object FillSchemaInternal(DataSet dataset, DataTable datatable, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior)

References System.Data.Common.ADP.ArgumentNull(), System.Data.Common.DbDataAdapter.FillSchemaInternal(), System.Data.Common.ADP.FillSchemaRequiresSourceTableName(), System.Data.Common.ADP.InvalidSchemaType(), System.Data.DataCommonEventSource.Log, and System.Data.Common.ADP.MissingSelectCommand().