Here are the examples of the csharp api class System.Data.Common.DbDataAdapter.FillSchema(System.Data.DataSet, System.Data.SchemaType, System.Data.IDbCommand, string, System.Data.CommandBehavior) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
View licenseoverride public DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType) { // V1.0.3300 IntPtr hscp; Bid.ScopeEnter(out hscp, "<comm.DbDataAdapter.FillSchema|API> %d#, dataSet, schemaType=%d{ds.SchemaType}\n", ObjectID, (int)schemaType); try { IDbCommand command = _IDbDataAdapter.SelectCommand; if (DesignMode && ((null == command) || (null == command.Connection) || ADP.IsEmpty(command.CommandText))) { return new DataTable[0]; // design-time support } CommandBehavior cmdBehavior = FillCommandBehavior; return FillSchema(dataSet, schemaType, command, DbDataAdapter.DefaultSourceTableName, cmdBehavior); } finally { Bid.ScopeLeave(ref hscp); } }
0
2. Example
View licensepublic DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, string srcTable) { // V1.0.3300 IntPtr hscp; Bid.ScopeEnter(out hscp, "<comm.DbDataAdapter.FillSchema|API> %d#, dataSet, schemaType=%d{ds.SchemaType}, srcTable=%ls%\n", ObjectID, (int)schemaType, srcTable); try { IDbCommand selectCmd = _IDbDataAdapter.SelectCommand; CommandBehavior cmdBehavior = FillCommandBehavior; return FillSchema(dataSet, schemaType, selectCmd, srcTable, cmdBehavior); } finally { Bid.ScopeLeave(ref hscp); } }