4 types derived from DbCommand
System.Data (3)
fx\src\data\System\Data\Odbc\OdbcCommand.cs (1)
35
public sealed class OdbcCommand :
DbCommand
, ICloneable {
fx\src\data\System\Data\OleDb\OleDbCommand.cs (1)
30
public sealed class OleDbCommand :
DbCommand
, ICloneable, IDbCommand {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
44
public sealed class SqlCommand :
DbCommand
, ICloneable {
System.Data.Entity (1)
System\Data\EntityClient\EntityCommand.cs (1)
28
public sealed class EntityCommand :
DbCommand
195 references to DbCommand
System.Data (64)
fx\src\data\System\Data\Common\DBCommandBuilder.cs (43)
270
private
DbCommand
_insertCommand;
271
private
DbCommand
_updateCommand;
272
private
DbCommand
_deleteCommand;
478
private
DbCommand
InsertCommand {
487
private
DbCommand
UpdateCommand {
496
private
DbCommand
DeleteCommand {
513
DbCommand
srcCommand = GetSelectCommand();
580
virtual protected DataTable GetSchemaTable (
DbCommand
sourceCommand) {
703
private
DbCommand
BuildDeleteCommand(DataTableMapping mappings, DataRow dataRow) {
704
DbCommand
command = InitializeCommand(DeleteCommand);
722
private
DbCommand
BuildInsertCommand(DataTableMapping mappings, DataRow dataRow) {
723
DbCommand
command = InitializeCommand(InsertCommand);
808
private
DbCommand
BuildUpdateCommand(DataTableMapping mappings, DataRow dataRow) {
809
DbCommand
command = InitializeCommand(UpdateCommand);
894
DbCommand
command,
1010
DbCommand
command,
1057
DbCommand
command,
1153
private
DbCommand
GetSelectCommand() { // V1.2.3300
1154
DbCommand
select = null;
1160
select = (
DbCommand
)adapter.SelectCommand;
1173
DbCommand
select = (
DbCommand
)adapter.SelectCommand;
1182
public
DbCommand
GetInsertCommand() { // V1.2.3300, XXXCommandBuilder V1.0.3300
1186
public
DbCommand
GetInsertCommand(bool useColumnsForParameterNames) {
1189
internal
DbCommand
GetInsertCommand(DataRow dataRow, bool useColumnsForParameterNames) {
1195
public
DbCommand
GetUpdateCommand() { // V1.2.3300, XXXCommandBuilder V1.0.3300
1198
public
DbCommand
GetUpdateCommand(bool useColumnsForParameterNames) {
1201
internal
DbCommand
GetUpdateCommand(DataRow dataRow, bool useColumnsForParameterNames) {
1207
public
DbCommand
GetDeleteCommand() { // V1.2.3300, XXXCommandBuilder V1.0.3300
1210
public
DbCommand
GetDeleteCommand(bool useColumnsForParameterNames) {
1213
internal
DbCommand
GetDeleteCommand(DataRow dataRow, bool useColumnsForParameterNames) {
1239
static private DbParameter GetNextParameter(
DbCommand
command, int pcount) {
1296
virtual protected
DbCommand
InitializeCommand(
DbCommand
command) { // V1.2.3300
1298
DbCommand
select = GetSelectCommand();
1342
DbCommand
command;
1357
static private void RemoveExtraParameters(
DbCommand
command, int usedParameterCount) {
1370
DbCommand
command = (
DbCommand
)rowUpdatingEvent.Command;
1391
command = (
DbCommand
)rowUpdatingEvent.Command;
1394
DbCommand
select = ((null != adapter) ? ((
DbCommand
)adapter.SelectCommand) : null);
1428
DbCommand
command;
fx\src\data\System\Data\Common\DBConnection.cs (2)
130
public
DbCommand
CreateCommand() {
138
abstract protected
DbCommand
CreateDbCommand();
fx\src\data\System\Data\Common\DbDataAdapter.cs (8)
58
public
DbCommand
DeleteCommand { // V1.2.3300
60
return (
DbCommand
)(_IDbDataAdapter.DeleteCommand);
95
public
DbCommand
InsertCommand { // V1.2.3300
97
return (
DbCommand
)(_IDbDataAdapter.InsertCommand);
117
public
DbCommand
SelectCommand { // V1.2.3300
119
return (
DbCommand
)(_IDbDataAdapter.SelectCommand);
155
public
DbCommand
UpdateCommand { // V1.2.3300
157
return (
DbCommand
)(_IDbDataAdapter.UpdateCommand);
fx\src\data\System\Data\Common\DbProviderFactory.cs (1)
30
public virtual
DbCommand
CreateCommand() {
fx\src\data\System\Data\Odbc\OdbcFactory.cs (1)
24
public override
DbCommand
CreateCommand() {
fx\src\data\System\Data\OleDb\OleDbFactory.cs (1)
24
public override
DbCommand
CreateCommand() {
fx\src\Data\System\Data\ProviderBase\DbConnectionHelper.cs (2)
177
override protected
DbCommand
CreateDbCommand() {
178
DbCommand
command = null;
fx\src\data\System\Data\ProviderBase\DbMetaDataFactory.cs (1)
132
DbCommand
command = null;
fx\src\data\System\Data\SqlClient\SqlClientFactory.cs (1)
31
public override
DbCommand
CreateCommand() {
fx\src\data\System\Data\SqlClient\SqlCommandBuilder.cs (3)
274
protected override DataTable GetSchemaTable (
DbCommand
srcCommand) {
294
protected override
DbCommand
InitializeCommand(
DbCommand
command) {
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (1)
228
DbCommand
batchCommand = BatchCommand;
System.Data.Entity (33)
System\Data\Common\DbCommandDefinition.cs (6)
31
internal static DbCommandDefinition CreateCommandDefinition(
DbCommand
prototype) {
37
DbCommand
clonedPrototype = (
DbCommand
)(cloneablePrototype.Clone());
45
protected DbCommandDefinition(
DbCommand
prototype) {
63
public virtual
DbCommand
CreateCommand() {
64
return (
DbCommand
)(_prototype.Clone());
System\Data\Common\DbProviderServices.cs (3)
106
internal virtual
DbCommand
CreateCommand(DbCommandTree commandTree) {
108
DbCommand
command = commandDefinition.CreateCommand();
120
public virtual DbCommandDefinition CreateCommandDefinition(
DbCommand
prototype) {
System\Data\Common\Utils\CommandHelper.cs (2)
100
internal static void SetStoreProviderCommandState(EntityCommand entityCommand, EntityTransaction entityTransaction,
DbCommand
storeProviderCommand)
120
internal static void SetEntityParameterValues(EntityCommand entityCommand,
DbCommand
storeProviderCommand, EntityConnection connection)
System\Data\EntityClient\EntityCommand.cs (3)
47
private
DbCommand
_storeProviderCommand;
274
DbCommand
storeCommand = this._connection.StoreProviderFactory.CreateCommand();
878
internal void SetStoreProviderCommand(
DbCommand
storeProviderCommand)
System\Data\EntityClient\EntityCommandDefinition.cs (4)
263
public override
DbCommand
CreateCommand() {
280
DbCommand
mappedCommand = commandDefinition.CreateCommand();
426
DbCommand
storeProviderCommand = definition.CreateCommand();
549
DbCommand
mappedCommand = commandDefinition.CreateCommand();
System\Data\EntityClient\EntityConnection.cs (1)
642
protected override
DbCommand
CreateDbCommand()
System\Data\EntityClient\EntityProviderFactory.cs (1)
42
public override
DbCommand
CreateCommand()
System\Data\EntityClient\EntityProviderServices.cs (1)
73
public override DbCommandDefinition CreateCommandDefinition(
DbCommand
prototype) {
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (2)
100
using (
DbCommand
command = this.CreateCommand(translator, identifierValues))
172
private
DbCommand
CreateCommand(UpdateTranslator translator, Dictionary<int, object> identifierValues)
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
59
private readonly
DbCommand
m_dbCommand;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (2)
779
internal
DbCommand
CreateCommand(DbModificationCommandTree commandTree)
781
DbCommand
command;
System\Data\Objects\ObjectContext.cs (4)
3021
DbCommand
command = CreateStoreCommand(commandText, parameters);
3080
DbCommand
command = CreateStoreCommand(commandText, parameters);
3195
private
DbCommand
CreateStoreCommand(string commandText, params object[] parameters)
3197
DbCommand
command = this._connection.StoreConnection.CreateCommand();
System\Data\SqlClient\SqlProviderServices.cs (3)
60
DbCommand
prototype = CreateCommand(providerManifest, commandTree);
70
internal override
DbCommand
CreateCommand(DbCommandTree commandTree) {
85
private
DbCommand
CreateCommand(DbProviderManifest providerManifest, DbCommandTree commandTree) {
System.Data.Linq (12)
DataContext.cs (1)
664
public
DbCommand
GetCommand(IQueryable query) {
Provider\IProvider.cs (1)
116
DbCommand
GetCommand(Expression query);
SqlClient\SqlProvider.cs (10)
387
using (
DbCommand
c = con.CreateCommand()) {
1034
DbCommand
cmd = con.CreateCommand();
1152
private void LogCommand(TextWriter writer,
DbCommand
cmd) {
1181
private void AssignParameters(
DbCommand
cmd, ReadOnlyCollection<SqlParameterInfo> parms, object[] userArguments, object lastResult) {
1271
DbCommand
IProvider.GetCommand(Expression query) {
1281
DbCommand
cmd = this.conManager.Connection.CreateCommand();
1781
DbCommand
command;
1790
internal ExecuteResult(
DbCommand
command, ReadOnlyCollection<SqlParameterInfo> parameters, IObjectReaderSession session, object value, bool useReturnValue)
1799
internal ExecuteResult(
DbCommand
command, ReadOnlyCollection<SqlParameterInfo> parameters, IObjectReaderSession session) {
1805
internal ExecuteResult(
DbCommand
command, ReadOnlyCollection<SqlParameterInfo> parameters, IObjectReaderSession session, object value)
System.Web (19)
UI\WebControls\SqlDataSource.cs (3)
817
internal
DbCommand
CreateCommand(string commandText, DbConnection connection) {
819
DbCommand
command = factory.CreateCommand();
828
internal DbDataAdapter CreateDataAdapter(
DbCommand
command) {
UI\WebControls\SqlDataSourceCommandEventArgs.cs (3)
16
private
DbCommand
_command;
20
public SqlDataSourceCommandEventArgs(
DbCommand
command) : base() {
26
public
DbCommand
Command {
UI\WebControls\SqlDataSourceSelectingEventArgs.cs (1)
21
public SqlDataSourceSelectingEventArgs(
DbCommand
command, DataSourceSelectArguments arguments /*, bool executingSelectCount*/) : base(command) {
UI\WebControls\SqlDataSourceStatusEventArgs.cs (3)
16
private
DbCommand
_command;
23
public SqlDataSourceStatusEventArgs(
DbCommand
command, int affectedRows, Exception exception) : base() {
37
public
DbCommand
Command {
UI\WebControls\SqlDataSourceView.cs (9)
615
private void AddParameters(
DbCommand
command, ParameterCollection reference, IDictionary parameters, IDictionary exclusionList, string oldValuesParameterFormatString) {
678
private Exception BuildCustomException(Exception ex, DataSourceOperation operation,
DbCommand
command, out bool isCustomException) {
714
private int ExecuteDbCommand(
DbCommand
command, DataSourceOperation operation) {
805
DbCommand
command = _owner.CreateCommand(DeleteCommand, connection);
847
DbCommand
command = _owner.CreateCommand(InsertCommand, connection);
940
DbCommand
command = _owner.CreateCommand(SelectCommand, connection);
1149
DbCommand
command = _owner.CreateCommand(UpdateCommand, connection);
1191
private void InitializeParameters(
DbCommand
command, ParameterCollection parameters, IDictionary exclusionList) {
1444
private void ReplaceNullValues(
DbCommand
command) {
System.Web.Extensions (17)
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (4)
383
DbCommand
cmd = conn.CreateCommand();
421
DbCommand
cmd = conn.CreateCommand();
501
DbCommand
cmd = null;
621
DbCommand
cmd = conn.CreateCommand();
ClientServices\Providers\ClientRoleProvider.cs (3)
222
DbCommand
cmd = conn.CreateCommand();
270
DbCommand
cmd = null;
324
DbCommand
cmd = conn.CreateCommand();
ClientServices\Providers\ClientSettingsProvider.cs (4)
689
DbCommand
cmd = conn.CreateCommand();
789
DbCommand
cmd = conn.CreateCommand();
872
DbCommand
cmd = conn.CreateCommand();
882
DbCommand
cmd = conn.CreateCommand();
ClientServices\Providers\SqlHelper.cs (6)
68
internal static void AddParameter(DbConnection conn,
DbCommand
cmd, string paramName, object paramValue)
86
DbCommand
cmd = connection.CreateCommand();
107
DbCommand
cmd = connection.CreateCommand();
150
DbCommand
cmd = connection.CreateCommand();
220
DbCommand
cmd = conn.CreateCommand();
287
private static void AddSqlCeParameter(
DbCommand
cmd, string paramName, object paramValue)
System.Workflow.Runtime (50)
Hosting\DbResourceAllocator.cs (4)
216
internal
DbCommand
NewCommand()
222
internal static
DbCommand
NewCommand(DbConnection dbConnection)
226
internal static
DbCommand
NewCommand(string commandText, DbConnection dbConnection, DbTransaction transaction)
228
DbCommand
command = dbConnection.CreateCommand();
Hosting\SqlWorkflowPersistenceService.cs (13)
175
DbCommand
command = NewStoredProcCommand("InsertInstanceState");
217
DbCommand
command = NewStoredProcCommand("InsertCompletedScope");
233
DbCommand
command = NewStoredProcCommand("UnlockInstanceState");
257
DbCommand
command = NewStoredProcCommand("RetrieveNonblockingInstanceStateIds");
306
DbCommand
command = NewStoredProcCommand("RetrieveANonblockingInstanceStateId");
371
DbCommand
command = NewStoredProcCommand("RetrieveExpiredTimerIds");
421
DbCommand
command = NewStoredProcCommand("RetrieveInstanceState");
491
DbCommand
command = NewStoredProcCommand("RetrieveCompletedScope");
562
private
DbCommand
NewStoredProcCommand(string commandText)
564
DbCommand
command = DbResourceAllocator.NewCommand(commandText, this.connection, this.localTransaction);
570
private static void CheckOwnershipResult(
DbCommand
command)
598
private static Byte[] RetrieveStateFromDB(
DbCommand
command, bool checkOwnership, Guid instanceId)
648
DbCommand
command = NewStoredProcCommand("RetrieveAllInstanceDescriptions");
Tracking\SqlTrackingService.cs (33)
276
DbCommand
cmd = this._dbResourceAllocator.NewCommand();
358
DbCommand
cmd = null;
481
private DbDataReader ExecuteReaderRetried(
DbCommand
command, CommandBehavior behavior)
513
private void ExecuteNonQueryRetried(
DbCommand
command)
542
private void ExecuteNonQueryWithTxRetried(
DbCommand
command)
594
private void ResetConnectionForCommand(
DbCommand
command)
626
DbCommand
cmd = this._dbResourceAllocator.NewCommand();
819
DbCommand
command = null;
843
DbCommand
command = null;
860
private void ExecuteSetEndDate(long internalId,
DbCommand
command)
942
DbCommand
command = null;
1161
DbCommand
command = DbResourceAllocator.NewCommand(conn);
1200
private long ExecuteInsertWorkflowInstance(
DbCommand
command)
1235
private void BuildInsertWorkflowInstanceParameters(
DbCommand
command)
1262
private void InsertWorkflow(
DbCommand
command, Guid workflowInstanceId, Type workflowType, Activity rootActivity)
1337
DbCommand
command = DbResourceAllocator.NewCommand(conn);
1376
private void ExecuteInsertWorkflowInstanceEvent(long internalId, WorkflowTrackingRecord record1, WorkflowTrackingRecord record2,
DbCommand
command)
1409
private void BuildInsertWorkflowInstanceEventParameters(long internalId, WorkflowTrackingRecord record1, WorkflowTrackingRecord record2,
DbCommand
command)
1487
DbCommand
command = conn.CreateCommand();
1525
private void ExecuteInsertActivityStatusInstance(long internalId, IList<ActivityTrackingRecord> activities,
DbCommand
command)
1618
private void BuildInsertActivityStatusEventParameters(long internalId, long activityInstanceId, int parameterId, ActivityTrackingRecord record,
DbCommand
command)
1657
DbCommand
command = conn.CreateCommand();
1692
private void ExecuteInsertUserEvent(long internalId, UserTrackingRecord record,
DbCommand
command)
1728
private void BuildInsertUserEventParameters(long internalId, long activityInstanceId, UserTrackingRecord record,
DbCommand
command)
1793
private void BatchExecuteInsertTrackingDataItems(long internalId, char eventTypeId, IList<KeyValuePair<long, TrackingDataItem>> items,
DbCommand
command)
1822
private void ExecuteInsertTrackingDataItems(long internalId, char eventTypeId, IList<KeyValuePair<long, TrackingDataItem>> items,
DbCommand
command)
1900
private void ExecuteInsertAnnotation(long internalId, IList<KeyValuePair<long, string>> annotations,
DbCommand
command)
1931
private void BatchExecuteInsertEventAnnotation(long internalId, char eventTypeId, IList<KeyValuePair<long, string>> annotations,
DbCommand
command)
1961
private void ExecuteInsertEventAnnotation(long internalId, char eventTypeId, IList<KeyValuePair<long, string>> annotations,
DbCommand
command)
2007
DbCommand
command = DbResourceAllocator.NewCommand();
2046
private void ExecuteInsertWorkflowChange(long internalId, WorkflowTrackingRecord record,
DbCommand
command)
2091
private void ExecuteInsertAddedActivity(long internalId, string qualifiedName, string parentQualifiedName, string typeFullName, string assemblyFullName, string addedActivityActionXoml, long eventId, int order,
DbCommand
command)
2116
private void ExecuteInsertRemovedActivity(long internalId, string qualifiedName, string parentQualifiedName, string removedActivityActionXoml, long eventId, int order,
DbCommand
command)