3 types derived from DbCommand
System.Data.Common (1)
System\Data\Common\DbDataSource.cs (1)
96private sealed class DbCommandWrapper : DbCommand
System.Data.Odbc (1)
System\Data\Odbc\OdbcCommand.cs (1)
21public sealed class OdbcCommand : DbCommand, ICloneable
System.Data.OleDb (1)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (1)
11public sealed partial class OleDbCommand : System.Data.Common.DbCommand, System.Data.IDbCommand, System.ICloneable, System.IDisposable
73 references to DbCommand
HealthChecksSample (1)
DbConnectionHealthCheck.cs (1)
43var command = connection.CreateCommand();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
UserStoreEncryptPersonalDataTest.cs (2)
123using (var command = conn.CreateCommand()) 145using (var command = conn.CreateCommand())
Microsoft.Data.Analysis (1)
Extensions.cs (1)
17var query = connection.CreateCommand();
Microsoft.Data.Analysis.Tests (1)
DataFrame.IOTests.cs (1)
1267using var command = connection.CreateCommand();
Microsoft.ML.Data (2)
DataLoadSave\Database\DatabaseLoaderCursor.cs (2)
26private DbCommand _command; 70public DbCommand Command
netstandard (1)
netstandard.cs (1)
454[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbCommand))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
26[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbCommand))]
System.Data.Common (58)
System\Data\Common\DbCommand.cs (3)
132registration = cancellationToken.Register(s => ((DbCommand)s!).CancelIgnoreFailure(), this); 173registration = cancellationToken.Register(s => ((DbCommand)s!).CancelIgnoreFailure(), this); 205registration = cancellationToken.Register(s => ((DbCommand)s!).CancelIgnoreFailure(), this);
System\Data\Common\DBCommandBuilder.cs (39)
308private DbCommand? _insertCommand; 309private DbCommand? _updateCommand; 310private DbCommand? _deleteCommand; 525private DbCommand? InsertCommand 537private DbCommand? UpdateCommand 549private DbCommand? DeleteCommand 571DbCommand srcCommand = GetSelectCommand(); 648protected virtual DataTable? GetSchemaTable(DbCommand sourceCommand) 793private DbCommand BuildDeleteCommand(DataTableMapping? mappings, DataRow? dataRow) 795DbCommand command = InitializeCommand(DeleteCommand); 813private DbCommand BuildInsertCommand(DataTableMapping? mappings, DataRow? dataRow) 815DbCommand command = InitializeCommand(InsertCommand); 904private DbCommand? BuildUpdateCommand(DataTableMapping? mappings, DataRow? dataRow) 906DbCommand command = InitializeCommand(UpdateCommand); 995DbCommand command, 1122DbCommand command, 1175DbCommand command, 1292private DbCommand GetSelectCommand() 1294DbCommand? select = null; 1311public DbCommand GetInsertCommand() 1316public DbCommand GetInsertCommand(bool useColumnsForParameterNames) 1321internal DbCommand GetInsertCommand(DataRow? dataRow, bool useColumnsForParameterNames) 1328public DbCommand GetUpdateCommand() 1333public DbCommand GetUpdateCommand(bool useColumnsForParameterNames) 1338internal DbCommand GetUpdateCommand(DataRow? dataRow, bool useColumnsForParameterNames) 1345public DbCommand GetDeleteCommand() 1350public DbCommand GetDeleteCommand(bool useColumnsForParameterNames) 1355internal DbCommand GetDeleteCommand(DataRow? dataRow, bool useColumnsForParameterNames) 1388private static DbParameter GetNextParameter(DbCommand command, int pcount) 1454protected virtual DbCommand InitializeCommand(DbCommand? command) 1458DbCommand select = GetSelectCommand(); 1508DbCommand? command; 1526private static void RemoveExtraParameters(DbCommand command, int usedParameterCount) 1545DbCommand? command = (DbCommand?)rowUpdatingEvent.Command; 1569command = (DbCommand?)rowUpdatingEvent.Command; 1573DbCommand? select = adapter?.SelectCommand; 1603DbCommand? command;
System\Data\Common\DbConnection.cs (2)
137public DbCommand CreateCommand() => CreateDbCommand(); 141protected abstract DbCommand CreateDbCommand();
System\Data\Common\DbDataAdapter.cs (8)
55public DbCommand? DeleteCommand 59return (DbCommand?)(_IDbDataAdapter.DeleteCommand); 95public DbCommand? InsertCommand 99return (DbCommand?)(_IDbDataAdapter.InsertCommand); 123public DbCommand? SelectCommand 127return (DbCommand?)(_IDbDataAdapter.SelectCommand); 167public DbCommand? UpdateCommand 171return (DbCommand?)(_IDbDataAdapter.UpdateCommand);
System\Data\Common\DbDataSource.cs (5)
49protected virtual DbCommand CreateDbCommand(string? commandText = null) 51var command = CreateDbConnection().CreateCommand(); 69public DbCommand CreateCommand(string? commandText = null) 98private readonly DbCommand _wrappedCommand; 101internal DbCommandWrapper(DbCommand wrappedCommand)
System\Data\Common\DbProviderFactory.cs (1)
56public virtual DbCommand? CreateCommand() => null;
System.Data.Odbc (4)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (1)
112DbCommand? command;
System\Data\Odbc\OdbcConnectionHelper.cs (2)
153protected override DbCommand CreateDbCommand() 156DbCommand command = providerFactory.CreateCommand()!;
System\Data\Odbc\OdbcFactory.cs (1)
16public override DbCommand CreateCommand()
System.Data.OleDb (2)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (2)
115protected override System.Data.Common.DbCommand CreateDbCommand() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 272public override System.Data.Common.DbCommand CreateCommand() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }