220 references to CommandType
System.Activities.DurableInstancing (21)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (2)
114
protected override
CommandType
GetSqlCommandType()
116
return
CommandType
.StoredProcedure;
System\Activities\DurableInstancing\DeleteWorkflowOwnerAsyncResult.cs (2)
45
protected override
CommandType
GetSqlCommandType()
47
return
CommandType
.StoredProcedure;
System\Activities\DurableInstancing\DetectActivatableWorkflowsAsyncResult.cs (2)
54
protected override
CommandType
GetSqlCommandType()
56
return
CommandType
.StoredProcedure;
System\Activities\DurableInstancing\DetectRunnableInstancesAsyncResult.cs (2)
58
protected override
CommandType
GetSqlCommandType()
60
return
CommandType
.StoredProcedure;
System\Activities\DurableInstancing\ExtendLockAsyncResult.cs (2)
57
protected override
CommandType
GetSqlCommandType()
59
return
CommandType
.StoredProcedure;
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (2)
92
protected override
CommandType
GetSqlCommandType()
94
return
CommandType
.StoredProcedure;
System\Activities\DurableInstancing\RecoverInstanceLocksAsyncResult.cs (2)
53
protected override
CommandType
GetSqlCommandType()
55
return
CommandType
.StoredProcedure;
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (2)
129
protected override
CommandType
GetSqlCommandType()
131
return
CommandType
.Text;
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreAsyncResult.cs (1)
125
protected abstract
CommandType
GetSqlCommandType();
System\Activities\DurableInstancing\TestVersionAndRunAsyncResult.cs (2)
66
protected override
CommandType
GetSqlCommandType()
68
return
CommandType
.StoredProcedure;
System\Activities\DurableInstancing\UnlockInstanceAsyncResult.cs (2)
46
protected override
CommandType
GetSqlCommandType()
48
return
CommandType
.StoredProcedure;
System.Data (91)
fx\src\data\Microsoft\SqlServer\Server\SmiContext.cs (1)
41
CommandType
commandType,
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
462
static internal ArgumentOutOfRangeException InvalidCommandType(
CommandType
value) {
472
return InvalidEnumerationValue(typeof(
CommandType
), (int) value);
fx\src\data\System\Data\Common\DBCommand.cs (2)
42
DefaultValue(System.Data.
CommandType
.Text),
47
abstract public
CommandType
CommandType {
fx\src\data\System\Data\Common\DBCommandBuilder.cs (1)
1310
command.CommandType =
CommandType
.Text;
fx\src\data\System\Data\IDbCommand.cs (1)
34
CommandType
CommandType {
fx\src\data\System\Data\Odbc\Odbc32.cs (2)
43
static internal ArgumentOutOfRangeException NotSupportedCommandType(
CommandType
value) {
57
return ODBC.NotSupportedEnumerationValue(typeof(
CommandType
), (int)value);
fx\src\data\System\Data\Odbc\OdbcCommand.cs (10)
40
private
CommandType
_commandType;
208
DefaultValue(System.Data.
CommandType
.Text),
213
override public
CommandType
CommandType {
215
CommandType
cmdType = _commandType;
216
return ((0 != cmdType) ? cmdType :
CommandType
.Text);
220
case
CommandType
.Text:
221
case
CommandType
.StoredProcedure:
225
case
CommandType
.TableDirect:
648
&& (CommandType !=
CommandType
.StoredProcedure)) {
809
if (CommandType ==
CommandType
.TableDirect) {
fx\src\data\System\Data\Odbc\OdbcCommandBuilder.cs (3)
111
case System.Data.
CommandType
.Text:
113
case System.Data.
CommandType
.StoredProcedure:
115
case System.Data.
CommandType
.TableDirect:
fx\src\data\System\Data\OleDb\OleDbCommand.cs (19)
34
private
CommandType
_commandType;
169
DefaultValue(System.Data.
CommandType
.Text),
174
override public
CommandType
CommandType {
176
CommandType
cmdType = _commandType;
177
return ((0 != cmdType) ? cmdType :
CommandType
.Text);
181
case
CommandType
.Text:
182
case
CommandType
.StoredProcedure:
183
case
CommandType
.TableDirect:
377
Debug.Assert(System.Data.
CommandType
.Text == CommandType || System.Data.
CommandType
.StoredProcedure == CommandType, "CreateAccessor: incorrect CommandType");
600
case
CommandType
.Text:
601
case
CommandType
.StoredProcedure:
605
case
CommandType
.TableDirect:
960
CommandType
cmdtype = CommandType;
962
case System.Data.
CommandType
.Text:
966
case System.Data.
CommandType
.StoredProcedure:
970
case System.Data.
CommandType
.TableDirect:
1105
if (
CommandType
.TableDirect != CommandType) { // MDAC 70946, 71194
1109
if (
CommandType
.TableDirect != CommandType) {
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (3)
105
case System.Data.
CommandType
.Text:
107
case System.Data.
CommandType
.StoredProcedure:
109
case System.Data.
CommandType
.TableDirect:
fx\src\data\System\Data\SqlClient\SqlCommand.cs (38)
50
private
CommandType
_commandType;
696
DefaultValue(System.Data.
CommandType
.Text),
701
override public
CommandType
CommandType { // V1.2.3300, XXXCommand V1.0.5000
703
CommandType
cmdType = _commandType;
704
return ((0 != cmdType) ? cmdType :
CommandType
.Text);
710
case
CommandType
.Text:
711
case
CommandType
.StoredProcedure:
715
case System.Data.
CommandType
.TableDirect:
848
|| (this.CommandType ==
CommandType
.StoredProcedure)
850
(System.Data.
CommandType
.Text == this.CommandType)
1545
if ((System.Data.
CommandType
.Text == this.CommandType) && (0 == GetParameterCount(_parameters))) {
1639
else if (!ShouldUseEnclaveBasedWorkflow && !BatchRPCMode && (System.Data.
CommandType
.Text == this.CommandType) && (0 == GetParameterCount(_parameters))) {
2714
case System.Data.
CommandType
.Text:
2716
case System.Data.
CommandType
.StoredProcedure:
2718
case System.Data.
CommandType
.TableDirect:
2783
paramsCmd.CommandType =
CommandType
.StoredProcedure;
3731
if (CommandType == Data.
CommandType
.StoredProcedure) {
4423
writeTask = _stateObj.Parser.TdsExecuteRPC(this, _sqlRPCParameterEncryptionReqArray, timeout, inSchema, this.Notification, _stateObj,
CommandType
.StoredProcedure == CommandType, sync: !asyncWrite);
4434
writeTask = _stateObj.Parser.TdsExecuteRPC(this, _SqlRPCBatchArray, timeout, inSchema, this.Notification, _stateObj,
CommandType
.StoredProcedure == CommandType, sync: !asyncWrite );
4436
else if ((System.Data.
CommandType
.Text == this.CommandType) && (0 == GetParameterCount(_parameters))) {
4458
else if (System.Data.
CommandType
.Text == this.CommandType) {
4500
writeTask = _stateObj.Parser.TdsExecuteRPC(this, _rpcArrayOf1, timeout, inSchema, this.Notification, _stateObj,
CommandType
.StoredProcedure == CommandType, sync:!asyncWrite);
4503
Debug.Assert(this.CommandType == System.Data.
CommandType
.StoredProcedure, "unknown command type!");
4535
writeTask=_stateObj.Parser.TdsExecuteRPC(this, _rpcArrayOf1, timeout, inSchema, this.Notification, _stateObj,
CommandType
.StoredProcedure == CommandType, sync:!asyncWrite);
5425
parameter.Validate(ii,
CommandType
.StoredProcedure == CommandType);
5471
Debug.Assert(System.Data.
CommandType
.Text == this.CommandType, "invalid use of sp_prepexec for stored proc invocation!");
5549
Debug.Assert(this.CommandType == System.Data.
CommandType
.StoredProcedure, "Command must be a stored proc to execute an RPC");
5620
Debug.Assert(System.Data.
CommandType
.Text == this.CommandType, "invalid use of sp_executesql for stored proc invocation!");
5664
Debug.Assert(CommandType ==
CommandType
.StoredProcedure, "BuildStoredProcedureStatementForColumnEncryption() should only be called for stored procedures");
5750
sqlParam.Validate(i,
CommandType
.StoredProcedure == CommandType);
5941
Debug.Assert(System.Data.
CommandType
.Text == this.CommandType, "invalid call to GetCommandText for stored proc!");
5951
Debug.Assert(System.Data.
CommandType
.Text == this.CommandType, "invalid use of sp_prepare for stored proc invocation!");
6128
internal void AddBatchCommand(string commandText, SqlParameterCollection parameters,
CommandType
cmdType, SqlCommandColumnEncryptionSetting columnEncryptionSetting) {
6142
if (cmdType ==
CommandType
.StoredProcedure) {
6219
param.Validate(index,
CommandType
.StoredProcedure == CommandType);
6233
CommandType
cmdType = CommandType;
6258
if (
CommandType
.StoredProcedure == cmdType &&
6353
string commandText = CommandType ==
CommandType
.StoredProcedure ? CommandText : string.Empty;
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (6)
37
internal readonly
CommandType
CmdType;
40
internal LocalCommand(string commandText, SqlParameterCollection parameters, int returnParameterIndex,
CommandType
cmdType, SqlCommandColumnEncryptionSetting columnEncryptionSetting) {
122
CommandType
commandType = command.CommandType;
124
case
CommandType
.Text:
125
case
CommandType
.StoredProcedure:
127
case
CommandType
.TableDirect:
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1989
c.CommandType =
CommandType
.StoredProcedure;
fx\src\data\System\Data\SqlClient\SqlUtil.cs (2)
384
static internal ArgumentOutOfRangeException NotSupportedCommandType(
CommandType
value) {
398
return NotSupportedEnumerationValue(typeof(
CommandType
), (int)value);
System.Data.Entity (19)
System\Data\Common\QueryCache\EntityClientCacheKey.cs (2)
29
readonly
CommandType
_commandType;
201
return String.Join("|", new string[] { Enum.GetName(typeof(
CommandType
), _commandType), _eSqlStatement, _parametersToken });
System\Data\EntityClient\EntityCommand.cs (10)
39
private
CommandType
_commandType;
59
this._commandType =
CommandType
.Text;
239
if (
CommandType
.Text != CommandType)
293
public override
CommandType
CommandType
304
if (value !=
CommandType
.Text && value !=
CommandType
.StoredProcedure)
575
if (
CommandType
.Text == CommandType)
607
else if (
CommandType
.StoredProcedure == CommandType)
624
Debug.Assert(
CommandType
.StoredProcedure == this.CommandType);
825
if (this.CommandType ==
CommandType
.Text && parameter.Direction != ParameterDirection.Input)
System\Data\Objects\ObjectContext.cs (1)
2660
entityCommand.CommandType =
CommandType
.StoredProcedure;
System\Data\SqlClient\SqlGen\SqlGenerator.cs (5)
408
internal static string GenerateSql(DbCommandTree tree, SqlVersion sqlVersion, out List<SqlParameter> parameters, out
CommandType
commandType, out HashSet<string> paramsToForceNonUnicode)
411
commandType =
CommandType
.Text;
442
private static string GenerateFunctionSql(DbFunctionCommandTree tree, out
CommandType
commandType)
451
commandType =
CommandType
.StoredProcedure;
476
commandType =
CommandType
.Text;
System\Data\SqlClient\SqlProviderServices.cs (1)
99
CommandType
commandType;
System.Data.Entity.Design (1)
System\Data\Entity\Design\SSDLGenerator\EntityStoreSchemaGeneratorDatabaseSchemaLoader.cs (1)
190
command.CommandType =
CommandType
.Text;
System.Web (61)
Cache\SqlCacheDependency.cs (4)
1500
sqlCmd.CommandType =
CommandType
.StoredProcedure;
1516
sqlCmd.CommandType =
CommandType
.Text;
1528
sqlCmd.CommandType =
CommandType
.Text;
1692
sqlCmd.CommandType =
CommandType
.StoredProcedure;
DataAccess\SqlConnectionHelper.cs (1)
268
command.CommandType =
CommandType
.StoredProcedure;
Management\SqlServices.cs (1)
611
cmd.CommandType =
CommandType
.StoredProcedure;
Management\SqlWebEventProvider.cs (1)
188
sqlCommand.CommandType =
CommandType
.StoredProcedure;
Profile\SqlProfileProvider.cs (6)
166
cmd.CommandType =
CommandType
.StoredProcedure;
231
cmd.CommandType =
CommandType
.StoredProcedure;
341
cmd.CommandType =
CommandType
.StoredProcedure;
389
cmd.CommandType =
CommandType
.StoredProcedure;
423
cmd.CommandType =
CommandType
.StoredProcedure;
510
cmd.CommandType =
CommandType
.StoredProcedure;
Security\SQLMembershipProvider.cs (17)
364
cmd.CommandType =
CommandType
.StoredProcedure;
467
cmd.CommandType =
CommandType
.StoredProcedure;
624
cmd.CommandType =
CommandType
.StoredProcedure;
744
cmd.CommandType =
CommandType
.StoredProcedure;
824
cmd.CommandType =
CommandType
.StoredProcedure;
889
cmd.CommandType =
CommandType
.StoredProcedure;
941
cmd.CommandType =
CommandType
.StoredProcedure;
1029
cmd.CommandType =
CommandType
.StoredProcedure;
1120
cmd.CommandType =
CommandType
.StoredProcedure;
1174
cmd.CommandType =
CommandType
.StoredProcedure;
1239
cmd.CommandType =
CommandType
.StoredProcedure;
1321
cmd.CommandType =
CommandType
.StoredProcedure;
1376
cmd.CommandType =
CommandType
.StoredProcedure;
1474
cmd.CommandType =
CommandType
.StoredProcedure;
1584
cmd.CommandType =
CommandType
.StoredProcedure;
1645
cmd.CommandType =
CommandType
.StoredProcedure;
1725
cmd.CommandType =
CommandType
.StoredProcedure;
Security\SQLRoleProvider.cs (10)
115
cmd.CommandType =
CommandType
.StoredProcedure;
177
cmd.CommandType =
CommandType
.StoredProcedure;
245
cmd.CommandType =
CommandType
.StoredProcedure;
299
cmd.CommandType =
CommandType
.StoredProcedure;
350
cmd.CommandType =
CommandType
.StoredProcedure;
466
cmd.CommandType =
CommandType
.StoredProcedure;
578
cmd.CommandType =
CommandType
.StoredProcedure;
633
cmd.CommandType =
CommandType
.StoredProcedure;
702
cmd.CommandType =
CommandType
.StoredProcedure;
762
cmd.CommandType =
CommandType
.StoredProcedure;
State\sqlstateclientmanager.cs (15)
1004
cmd.CommandType =
CommandType
.Text;
1030
cmd.CommandType =
CommandType
.StoredProcedure;
1069
cmdTempGetAppId.CommandType =
CommandType
.StoredProcedure;
1284
_cmdTempGet.CommandType =
CommandType
.StoredProcedure;
1326
_cmdTempGetExclusive.CommandType =
CommandType
.StoredProcedure;
1367
_cmdTempReleaseExclusive.CommandType =
CommandType
.StoredProcedure;
1381
_cmdTempInsertLong.CommandType =
CommandType
.StoredProcedure;
1397
_cmdTempInsertShort.CommandType =
CommandType
.StoredProcedure;
1412
_cmdTempUpdateLong.CommandType =
CommandType
.StoredProcedure;
1429
_cmdTempUpdateShort.CommandType =
CommandType
.StoredProcedure;
1446
_cmdTempUpdateShortNullLong.CommandType =
CommandType
.StoredProcedure;
1462
_cmdTempUpdateLongNullShort.CommandType =
CommandType
.StoredProcedure;
1479
_cmdTempRemove.CommandType =
CommandType
.StoredProcedure;
1494
_cmdTempInsertUninitializedItem.CommandType =
CommandType
.StoredProcedure;
1510
_cmdTempResetTimeout.CommandType =
CommandType
.StoredProcedure;
UI\WebControls\SqlDataSourceView.cs (4)
956
if (command.CommandType !=
CommandType
.StoredProcedure) {
1179
private static
CommandType
GetCommandType(SqlDataSourceCommandType commandType) {
1181
return
CommandType
.Text;
1183
return
CommandType
.StoredProcedure;
UI\WebParts\SqlPersonalizationProvider.cs (1)
966
command.CommandType =
CommandType
.StoredProcedure;
Util\SecUtil.cs (1)
270
cmd.CommandType =
CommandType
.StoredProcedure;
System.Workflow.Runtime (22)
Hosting\SqlWorkflowPersistenceService.cs (1)
565
command.CommandType =
CommandType
.StoredProcedure;
Tracking\SqlTrackingQuery.cs (2)
170
cmd.CommandType =
CommandType
.StoredProcedure;
184
cmd.CommandType =
CommandType
.StoredProcedure;
Tracking\SqlTrackingService.cs (15)
277
cmd.CommandType =
CommandType
.StoredProcedure;
369
cmd.CommandType =
CommandType
.StoredProcedure;
630
cmd.CommandType =
CommandType
.StoredProcedure;
828
command.CommandType =
CommandType
.StoredProcedure;
867
command.CommandType =
CommandType
.StoredProcedure;
1238
command.CommandType =
CommandType
.StoredProcedure;
1291
command.CommandType =
CommandType
.StoredProcedure;
1419
command.CommandType =
CommandType
.StoredProcedure;
1536
command.CommandType =
CommandType
.StoredProcedure;
1733
command.CommandType =
CommandType
.StoredProcedure;
1834
command.CommandType =
CommandType
.StoredProcedure;
1912
command.CommandType =
CommandType
.StoredProcedure;
1975
command.CommandType =
CommandType
.StoredProcedure;
2098
command.CommandType =
CommandType
.StoredProcedure;
2123
command.CommandType =
CommandType
.StoredProcedure;
Tracking\SqlTrackingWorkflowInstance.cs (4)
551
cmd.CommandType =
CommandType
.StoredProcedure;
668
cmd.CommandType =
CommandType
.StoredProcedure;
763
cmd.CommandType =
CommandType
.StoredProcedure;
853
cmd.CommandType =
CommandType
.StoredProcedure;
System.WorkflowServices (5)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (5)
766
command.CommandType =
CommandType
.StoredProcedure;
843
command.CommandType =
CommandType
.StoredProcedure;
945
command.CommandType =
CommandType
.StoredProcedure;
1408
command.CommandType =
CommandType
.StoredProcedure;
1467
command.CommandType =
CommandType
.StoredProcedure;