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