System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet, int, int, string, System.Data.IDbCommand, System.Data.CommandBehavior)

Here are the examples of the csharp api class System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet, int, int, string, System.Data.IDbCommand, System.Data.CommandBehavior) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

1. Example

Project: referencesource
Source File: DbDataAdapter.cs
View license
override public int Fill(DataSet dataSet) { // V1.0.3300
            IntPtr hscp;
            Bid.ScopeEnter(out hscp, "<comm.DbDataAdapter.Fill|API> %d#, dataSet\n", ObjectID);
            try {
                // delegate to Fill4
                IDbCommand selectCmd = _IDbDataAdapter.SelectCommand;
                CommandBehavior cmdBehavior = FillCommandBehavior;
                return Fill(dataSet, 0, 0, DbDataAdapter.DefaultSourceTableName, selectCmd, cmdBehavior);
            }
            finally {
                Bid.ScopeLeave(ref hscp);
            }
        }

2. Example

Project: referencesource
Source File: DbDataAdapter.cs
View license
public int Fill(DataSet dataSet, string srcTable) { // V1.0.3300
            IntPtr hscp;
            Bid.ScopeEnter(out hscp, "<comm.DbDataAdapter.Fill|API> %d#, dataSet, srcTable='%ls'\n", ObjectID, srcTable);
            try {
                // delegate to Fill4
                IDbCommand selectCmd = _IDbDataAdapter.SelectCommand;
                CommandBehavior cmdBehavior = FillCommandBehavior;
                return Fill(dataSet, 0, 0, srcTable, selectCmd, cmdBehavior);
            }
            finally {
                Bid.ScopeLeave(ref hscp);
            }
        }

3. Example

Project: referencesource
Source File: DbDataAdapter.cs
View license
public int Fill(DataSet dataSet, int startRecord, int maxRecords, string srcTable) { // V1.0.3300
            IntPtr hscp;
            Bid.ScopeEnter(out hscp, "<comm.DbDataAdapter.Fill|API> %d#, dataSet, startRecord=%d, maxRecords=%d, srcTable='%ls'\n", ObjectID, startRecord, maxRecords, srcTable);
            try {
                // delegate to Fill4
                IDbCommand selectCmd = _IDbDataAdapter.SelectCommand;
                CommandBehavior cmdBehavior = FillCommandBehavior;
                return Fill(dataSet, startRecord, maxRecords, srcTable, selectCmd, cmdBehavior);
            }
            finally {
                Bid.ScopeLeave(ref hscp);
            }
        }

4. Example

View license
protected override int Fill(
            DataSet dataSet,
            int startRecord,
            int maxRecords,
            string srcTable,
            IDbCommand command,
            CommandBehavior behavior)
        {
            // ReSharper disable once ConditionIsAlwaysTrueOrFalse
            if (command == null)
            {
                command = GetBuiltSelectCommand();
            }
            return base.Fill(dataSet, startRecord, maxRecords, srcTable, command, behavior);
        }