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