111 writes to SqlDbType
System.Activities.DurableInstancing (89)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (12)
88
parameters.Add(new SqlParameter { ParameterName = "@lockTimeout",
SqlDbType
= SqlDbType.Int, Value = lockTimeout });
89
parameters.Add(new SqlParameter { ParameterName = "@lockOwnerId",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = this.lockOwnerId });
90
parameters.Add(new SqlParameter { ParameterName = "@workflowHostType",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = (base.Store.WorkflowHostType != Guid.Empty) ? base.Store.WorkflowHostType : (object) DBNull.Value });
91
parameters.Add(new SqlParameter { ParameterName = "@enqueueCommand",
SqlDbType
= SqlDbType.Bit, Value = base.Store.EnqueueRunCommands });
92
parameters.Add(new SqlParameter { ParameterName = "@deleteInstanceOnCompletion",
SqlDbType
= SqlDbType.Bit, Value = (base.Store.InstanceCompletionAction == InstanceCompletionAction.DeleteAll) });
93
parameters.Add(new SqlParameter { ParameterName = "@primitiveLockOwnerData",
SqlDbType
= SqlDbType.VarBinary, Size = properties[0].Count, Value = (object)(properties[0].Array) ?? DBNull.Value });
94
parameters.Add(new SqlParameter { ParameterName = "@complexLockOwnerData",
SqlDbType
= SqlDbType.VarBinary, Size = properties[1].Count, Value = (object)(properties[1].Array) ?? DBNull.Value });
95
parameters.Add(new SqlParameter { ParameterName = "@writeOnlyPrimitiveLockOwnerData",
SqlDbType
= SqlDbType.VarBinary, Size = properties[2].Count, Value = (object)(properties[2].Array) ?? DBNull.Value });
96
parameters.Add(new SqlParameter { ParameterName = "@writeOnlyComplexLockOwnerData",
SqlDbType
= SqlDbType.VarBinary, Size = properties[3].Count, Value = (object)(properties[3].Array) ?? DBNull.Value });
97
parameters.Add(new SqlParameter { ParameterName = "@encodingOption",
SqlDbType
= SqlDbType.TinyInt, Value = base.Store.InstanceEncodingOption });
98
parameters.Add(new SqlParameter { ParameterName = "@machineName",
SqlDbType
= SqlDbType.NVarChar, Value = SqlWorkflowInstanceStoreConstants.MachineName });
105
parameters.Add(new SqlParameter { ParameterName = "@identityMetadata",
SqlDbType
= SqlDbType.Xml, Value = identityMetadataXml });
System\Activities\DurableInstancing\DeleteWorkflowOwnerAsyncResult.cs (1)
37
sqlCommand.Parameters.Add(new SqlParameter { ParameterName = "@surrogateLockOwnerId",
SqlDbType
= SqlDbType.BigInt, Value = this.surrogateLockOwnerId });
System\Activities\DurableInstancing\DetectActivatableWorkflowsAsyncResult.cs (1)
46
sqlCommand.Parameters.Add(new SqlParameter { ParameterName = "@machineName",
SqlDbType
= SqlDbType.NVarChar, Value = SqlWorkflowInstanceStoreConstants.MachineName });
System\Activities\DurableInstancing\DetectRunnableInstancesAsyncResult.cs (2)
46
sqlCommand.Parameters.Add(new SqlParameter { ParameterName = "@workflowHostType",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = base.Store.WorkflowHostType });
49
sqlCommand.Parameters.Add(new SqlParameter { ParameterName = "@surrogateLockOwnerId",
SqlDbType
= SqlDbType.BigInt, Value = base.StoreLock.SurrogateLockOwnerId });
System\Activities\DurableInstancing\ExtendLockAsyncResult.cs (2)
48
sqlCommand.Parameters.Add(new SqlParameter { ParameterName = "@surrogateLockOwnerId",
SqlDbType
= SqlDbType.BigInt, Value = surrogateOwnerId });
49
sqlCommand.Parameters.Add(new SqlParameter { ParameterName = "@lockTimeout",
SqlDbType
= SqlDbType.Int, Value = lockTimeout });
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (11)
65
parameters.Add(new SqlParameter { ParameterName = "@surrogateLockOwnerId",
SqlDbType
= SqlDbType.BigInt, Value = surrogateLockOwnerId });
66
parameters.Add(new SqlParameter { ParameterName = "@operationType",
SqlDbType
= SqlDbType.TinyInt, Value = loadType });
67
parameters.Add(new SqlParameter { ParameterName = "@keyToLoadBy",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = keyToLoadBy });
68
parameters.Add(new SqlParameter { ParameterName = "@instanceId",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = instanceId });
69
parameters.Add(new SqlParameter { ParameterName = "@handleInstanceVersion",
SqlDbType
= SqlDbType.BigInt, Value = base.InstancePersistenceContext.InstanceVersion });
70
parameters.Add(new SqlParameter { ParameterName = "@handleIsBoundToLock",
SqlDbType
= SqlDbType.Bit, Value = base.InstancePersistenceContext.InstanceView.IsBoundToLock });
71
parameters.Add(new SqlParameter { ParameterName = "@keysToAssociate",
SqlDbType
= SqlDbType.Xml, Value = singleKeyToAssociate ? DBNull.Value : SerializationUtilities.CreateCorrelationKeyXmlBlob(keysToAssociate) });
72
parameters.Add(new SqlParameter { ParameterName = "@encodingOption",
SqlDbType
= SqlDbType.TinyInt, Value = base.Store.InstanceEncodingOption });
73
parameters.Add(new SqlParameter { ParameterName = "@concatenatedKeyProperties",
SqlDbType
= SqlDbType.VarBinary, Value = (object) concatenatedKeyProperties ?? DBNull.Value });
74
parameters.Add(new SqlParameter { ParameterName = "@operationTimeout",
SqlDbType
= SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.ToInt32(operationTimeout) : Int32.MaxValue });
75
parameters.Add(new SqlParameter { ParameterName = "@singleKeyId",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = singleKeyToAssociate ? keysToAssociate[0].KeyId : (object) DBNull.Value });
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (50)
74
parameters.Add(new SqlParameter { ParameterName = "@instanceId",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = base.InstancePersistenceContext.InstanceView.InstanceId });
75
parameters.Add(new SqlParameter { ParameterName = "@surrogateLockOwnerId",
SqlDbType
= SqlDbType.BigInt, Value = base.StoreLock.SurrogateLockOwnerId });
76
parameters.Add(new SqlParameter { ParameterName = "@handleInstanceVersion",
SqlDbType
= SqlDbType.BigInt, Value = base.InstancePersistenceContext.InstanceVersion });
77
parameters.Add(new SqlParameter { ParameterName = "@handleIsBoundToLock",
SqlDbType
= SqlDbType.Bit, Value = base.InstancePersistenceContext.InstanceView.IsBoundToLock });
78
parameters.Add(new SqlParameter { ParameterName = "@timerDurationMilliseconds",
SqlDbType
= SqlDbType.BigInt, Value = (object)GetPendingTimerExpiration(saveWorkflowCommand) ?? DBNull.Value });
79
parameters.Add(new SqlParameter { ParameterName = "@unlockInstance",
SqlDbType
= SqlDbType.Bit, Value = saveWorkflowCommand.UnlockInstance });
80
parameters.Add(new SqlParameter { ParameterName = "@suspensionStateChange",
SqlDbType
= SqlDbType.TinyInt, Value = GetSuspensionReason(saveWorkflowCommand, out suspensionReason, out suspensionExceptionName) });
81
parameters.Add(new SqlParameter { ParameterName = "@suspensionReason",
SqlDbType
= SqlDbType.NVarChar, Value = (object)suspensionReason ?? DBNull.Value });
82
parameters.Add(new SqlParameter { ParameterName = "@suspensionExceptionName",
SqlDbType
= SqlDbType.NVarChar, Size = 450, Value = (object)suspensionExceptionName ?? DBNull.Value });
83
parameters.Add(new SqlParameter { ParameterName = "@isCompleted",
SqlDbType
= SqlDbType.Bit, Value = saveWorkflowCommand.CompleteInstance });
84
parameters.Add(new SqlParameter { ParameterName = "@isReadyToRun",
SqlDbType
= SqlDbType.Bit, Value = IsReadyToRun(saveWorkflowCommand) });
85
parameters.Add(new SqlParameter { ParameterName = "@workflowHostType",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = (object)GetWorkflowHostType(saveWorkflowCommand) ?? DBNull.Value });
86
parameters.Add(new SqlParameter { ParameterName = "@operationTimeout",
SqlDbType
= SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.ToInt32(operationTimeout) : Int32.MaxValue });
92
parameters.Add(new SqlParameter { ParameterName = "@identityMetadata",
SqlDbType
= SqlDbType.Xml, Value = (object)identityMetadataXml ?? DBNull.Value });
194
parameters.Add(new SqlParameter { ParameterName = parameterName,
SqlDbType
= SqlDbType.VarBinary, Size = parameterSize, Value = parameterValue });
436
parameters.Add(new SqlParameter { ParameterName = "@serviceDeploymentHash",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = this.serviceDeploymentHash });
437
parameters.Add(new SqlParameter { ParameterName = "@serviceName", Size = -1,
SqlDbType
= SqlDbType.NVarChar, Value = serviceName ?? (object)DBNull.Value });
438
parameters.Add(new SqlParameter { ParameterName = "@serviceNamespace", Size = -1,
SqlDbType
= SqlDbType.NVarChar, Value = serviceNamespace ?? (object)DBNull.Value });
439
parameters.Add(new SqlParameter { ParameterName = "@siteName", Size = -1,
SqlDbType
= SqlDbType.NVarChar, Value = site ?? (object)DBNull.Value });
440
parameters.Add(new SqlParameter { ParameterName = "@relativeServicePath", Size = -1,
SqlDbType
= SqlDbType.NVarChar, Value = relativeServicePath ?? (object)DBNull.Value });
441
parameters.Add(new SqlParameter { ParameterName = "@relativeApplicationPath", Size = -1,
SqlDbType
= SqlDbType.NVarChar, Value = relativeApplicationPath ?? (object)DBNull.Value });
445
parameters.Add(new SqlParameter { ParameterName = "@serviceDeploymentId",
SqlDbType
= SqlDbType.BigInt, Value = (this.serviceDeploymentId != 0) ? (object)this.serviceDeploymentId : (object)DBNull.Value });
479
parameters.Add(new SqlParameter { ParameterName = "@keysToAssociate",
SqlDbType
= SqlDbType.Xml, Value = DBNull.Value });
480
parameters.Add(new SqlParameter { ParameterName = "@singleKeyId",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = DBNull.Value });
481
parameters.Add(new SqlParameter { ParameterName = "@keysToComplete",
SqlDbType
= SqlDbType.Xml, Value = DBNull.Value });
482
parameters.Add(new SqlParameter { ParameterName = "@keysToFree",
SqlDbType
= SqlDbType.Xml, Value = DBNull.Value });
483
parameters.Add(new SqlParameter { ParameterName = "@concatenatedKeyProperties",
SqlDbType
= SqlDbType.VarBinary, Value = DBNull.Value });
484
parameters.Add(new SqlParameter { ParameterName = "@primitiveDataProperties",
SqlDbType
= SqlDbType.VarBinary, Value = DBNull.Value });
485
parameters.Add(new SqlParameter { ParameterName = "@complexDataProperties",
SqlDbType
= SqlDbType.VarBinary, Value = DBNull.Value });
486
parameters.Add(new SqlParameter { ParameterName = "@writeOnlyPrimitiveDataProperties",
SqlDbType
= SqlDbType.VarBinary, Value = DBNull.Value });
487
parameters.Add(new SqlParameter { ParameterName = "@writeOnlyComplexDataProperties",
SqlDbType
= SqlDbType.VarBinary, Value = DBNull.Value });
488
parameters.Add(new SqlParameter { ParameterName = "@metadataProperties",
SqlDbType
= SqlDbType.VarBinary, Value = DBNull.Value });
489
parameters.Add(new SqlParameter { ParameterName = "@metadataIsConsistent",
SqlDbType
= SqlDbType.Bit, Value = DBNull.Value });
490
parameters.Add(new SqlParameter { ParameterName = "@encodingOption",
SqlDbType
= SqlDbType.TinyInt, Value = DBNull.Value });
491
parameters.Add(new SqlParameter { ParameterName = "@lastMachineRunOn",
SqlDbType
= SqlDbType.NVarChar, Value = DBNull.Value });
492
parameters.Add(new SqlParameter { ParameterName = "@executionStatus",
SqlDbType
= SqlDbType.NVarChar, Value = DBNull.Value });
493
parameters.Add(new SqlParameter { ParameterName = "@blockingBookmarks",
SqlDbType
= SqlDbType.NVarChar, Value = DBNull.Value });
507
parameters.Add(new SqlParameter { ParameterName = "@keysToAssociate",
SqlDbType
= SqlDbType.Xml, Value = singleKeyToAssociate ? DBNull.Value : SerializationUtilities.CreateCorrelationKeyXmlBlob(keysToAssociate) });
508
parameters.Add(new SqlParameter { ParameterName = "@singleKeyId",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = singleKeyToAssociate ? keysToAssociate[0].KeyId : (object)DBNull.Value });
509
parameters.Add(new SqlParameter { ParameterName = "@keysToComplete",
SqlDbType
= SqlDbType.Xml, Value = SerializationUtilities.CreateCorrelationKeyXmlBlob(keysToComplete) });
510
parameters.Add(new SqlParameter { ParameterName = "@keysToFree",
SqlDbType
= SqlDbType.Xml, Value = SerializationUtilities.CreateCorrelationKeyXmlBlob(keysToFree) });
511
parameters.Add(new SqlParameter { ParameterName = "@concatenatedKeyProperties",
SqlDbType
= SqlDbType.VarBinary, Size = -1, Value = (object)concatenatedKeyProperties ?? DBNull.Value });
512
parameters.Add(new SqlParameter { ParameterName = "@metadataIsConsistent",
SqlDbType
= SqlDbType.Bit, Value = metadataConsistency });
513
parameters.Add(new SqlParameter { ParameterName = "@encodingOption",
SqlDbType
= SqlDbType.TinyInt, Value = base.Store.InstanceEncodingOption });
514
parameters.Add(new SqlParameter { ParameterName = "@lastMachineRunOn",
SqlDbType
= SqlDbType.NVarChar, Size = 450, Value = SqlWorkflowInstanceStoreConstants.MachineName });
515
parameters.Add(new SqlParameter { ParameterName = "@executionStatus",
SqlDbType
= SqlDbType.NVarChar, Size = 450, Value = GetExecutionStatus(saveWorkflowCommand) ?? (object)DBNull.Value });
516
parameters.Add(new SqlParameter { ParameterName = "@blockingBookmarks",
SqlDbType
= SqlDbType.NVarChar, Size = -1, Value = GetBlockingBookmarks(saveWorkflowCommand) ?? (object)DBNull.Value });
564
parameters.Add(new SqlParameter() {
SqlDbType
= SqlDbType.Variant, ParameterName = argumentName, Value = propertyValue.Value ?? DBNull.Value });
597
parameters.Add(new SqlParameter() {
SqlDbType
= SqlDbType.NVarChar, Size = 400, ParameterName = promotionNameArgument, Value = promotion.Key });
598
parameters.Add(new SqlParameter() {
SqlDbType
= SqlDbType.UniqueIdentifier, ParameterName = instanceIdArgument, Value = base.InstancePersistenceContext.InstanceView.InstanceId });
System\Activities\DurableInstancing\TryLoadRunnableWorkflowAsyncResult.cs (7)
41
command.Parameters.Add(new SqlParameter { ParameterName = "@surrogateLockOwnerId",
SqlDbType
= SqlDbType.BigInt, Value = base.StoreLock.SurrogateLockOwnerId });
42
command.Parameters.Add(new SqlParameter { ParameterName = "@workflowHostType",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = base.Store.WorkflowHostType });
43
command.Parameters.Add(new SqlParameter { ParameterName = "@operationType",
SqlDbType
= SqlDbType.TinyInt, Value = LoadType.LoadByInstance });
44
command.Parameters.Add(new SqlParameter { ParameterName = "@handleInstanceVersion",
SqlDbType
= SqlDbType.BigInt, Value = base.InstancePersistenceContext.InstanceVersion });
45
command.Parameters.Add(new SqlParameter { ParameterName = "@handleIsBoundToLock",
SqlDbType
= SqlDbType.Bit, Value = base.InstancePersistenceContext.InstanceView.IsBoundToLock });
46
command.Parameters.Add(new SqlParameter { ParameterName = "@encodingOption",
SqlDbType
= SqlDbType.TinyInt, Value = base.Store.InstanceEncodingOption });
47
command.Parameters.Add(new SqlParameter { ParameterName = "@operationTimeout",
SqlDbType
= SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.ToInt32(operationTimeout) : Int32.MaxValue });
System\Activities\DurableInstancing\UnlockInstanceAsyncResult.cs (3)
36
sqlCommand.Parameters.Add(new SqlParameter { ParameterName = "@instanceId",
SqlDbType
= SqlDbType.UniqueIdentifier, Value = unlockCommand.InstanceId });
37
sqlCommand.Parameters.Add(new SqlParameter { ParameterName = "@surrogateLockOwnerId",
SqlDbType
= SqlDbType.BigInt, Value = unlockCommand.SurrogateOwnerId });
38
sqlCommand.Parameters.Add(new SqlParameter { ParameterName = "@handleInstanceVersion",
SqlDbType
= SqlDbType.BigInt, Value = unlockCommand.InstanceVersion });
System.Data (11)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (5)
2829
p.
SqlDbType
= (SqlDbType)(short)r[colNames[(int)ProcParamsColIndex.ManagedDataType]];
2836
p.
SqlDbType
= SqlDbType.VarBinary;
2840
p.
SqlDbType
= SqlDbType.NVarChar;
2844
p.
SqlDbType
= SqlDbType.VarChar;
2852
p.
SqlDbType
= MetaType.GetSqlDbTypeFromOleDbType((short)r[colNames[(int)ProcParamsColIndex.DataType]],
fx\src\data\System\Data\SqlClient\SqlCommandBuilder.cs (1)
163
p.
SqlDbType
= (SqlDbType) valueType;
fx\src\data\System\Data\SqlClient\SqlParameter.cs (5)
137
this.
SqlDbType
= dbType;
157
this.
SqlDbType
= dbType;
172
this.
SqlDbType
= dbType;
184
this.
SqlDbType
= dbType;
190
this.
SqlDbType
= dbType;
System.Data.Entity (1)
System\Data\SqlClient\SqlProviderServices.cs (1)
344
result.
SqlDbType
= sqlDbType;
System.Data.Linq (1)
SqlClient\SqlTypeSystemProvider.cs (1)
978
sParameter.
SqlDbType
= sqlType.SqlDbType;
System.Web (2)
UI\WebControls\SqlDataSourceView.cs (2)
1226
sqlParameter.
SqlDbType
= SqlDbType.Time;
1229
sqlParameter.
SqlDbType
= SqlDbType.Date;
System.Workflow.Runtime (7)
Tracking\SqlTrackingQuery.cs (7)
174
param.
SqlDbType
= SqlDbType.UniqueIdentifier;
190
param.
SqlDbType
= SqlDbType.TinyInt;
199
param.
SqlDbType
= SqlDbType.DateTime;
209
param.
SqlDbType
= SqlDbType.DateTime;
222
param.
SqlDbType
= SqlDbType.NVarChar;
227
param.
SqlDbType
= SqlDbType.NVarChar;
276
param.
SqlDbType
= SqlDbType.NText;
26 references to SqlDbType
System.Data (23)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (12)
2833
switch (p.
SqlDbType
) {
2867
(p.
SqlDbType
== SqlDbType.NVarChar ||
2868
p.
SqlDbType
== SqlDbType.VarBinary ||
2869
p.
SqlDbType
== SqlDbType.VarChar)) {
2878
if (p.
SqlDbType
== SqlDbType.Decimal) {
2884
if (SqlDbType.Udt == p.
SqlDbType
) {
2903
if (SqlDbType.Structured == p.
SqlDbType
) {
2914
if (SqlDbType.Xml == p.
SqlDbType
) {
2927
if (MetaType._IsVarTime(p.
SqlDbType
)) {
3762
paramCopy = new SqlParameter(param.ParameterName, param.
SqlDbType
, param.Size, param.Direction, param.Precision, param.Scale, param.SourceColumn, param.SourceVersion,
5215
if (SqlDbType.Udt == thisParam.
SqlDbType
) {
5453
if (null == parameter.Value && (!inSchema || SqlDbType.Structured == parameter.
SqlDbType
)) {
fx\src\data\System\Data\SqlClient\SqlCommandBuilder.cs (1)
166
if ((p.
SqlDbType
== SqlDbType.Udt) && !p.SourceColumnNullMapping) {
fx\src\data\System\Data\SqlClient\SqlParameter.cs (10)
578
SqlDbType sqlDbType =
SqlDbType
;
1448
throw ADP.PrepareParameterScale(cmd,
SqlDbType
.ToString());
1487
(
SqlDbType
!= SqlDbType.Timestamp) &&
1488
(
SqlDbType
!= SqlDbType.Udt) &&
1491
(
SqlDbType
!= SqlDbType.Xml) &&
1814
ctorValues = new object[] { p.ParameterName, p.
SqlDbType
};
1819
ctorValues = new object[] { p.ParameterName, p.
SqlDbType
, p.Size };
1826
ctorValues = new object[] { p.ParameterName, p.
SqlDbType
, p.Size, p.SourceColumn };
1840
p.ParameterName, p.
SqlDbType
, p.Size, p.Direction,
1854
p.ParameterName, p.
SqlDbType
, p.Size, p.Direction,
System.Data.Entity (2)
System\Data\SqlClient\SqlProviderServices.cs (2)
190
int suggestedLength = GetNonMaxLength(((SqlParameter)parameter).
SqlDbType
);
343
if (result.
SqlDbType
!= sqlDbType) {
System.Data.Linq (1)
SqlClient\SqlProvider.cs (1)
1170
sp == null ? p.DbType.ToString() : sp.
SqlDbType
.ToString(),