104 references to SqlParameter
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 (10)
fx\src\data\System\Data\SqlClient\SqlClientFactory.cs (1)
52
return new
SqlParameter
();
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
1103
return new
SqlParameter
();
2822
p = new
SqlParameter
();
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (1)
143
SqlParameter p = new
SqlParameter
();
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (1)
435
SqlParameter param = new
SqlParameter
();
fx\src\data\System\Data\SqlClient\SqlParameter.cs (5)
135
object value) :
this
() { // V1.0 everything
170
public SqlParameter(string parameterName, SqlDbType dbType) :
this
() {
175
public SqlParameter(string parameterName, object value) :
this
() {
182
public SqlParameter(string parameterName, SqlDbType dbType, int size) :
this
() {
188
public SqlParameter(string parameterName, SqlDbType dbType, int size, string sourceColumn) :
this
() {
System.Workflow.Runtime (5)
Tracking\SqlTrackingQuery.cs (5)
172
SqlParameter param = new
SqlParameter
();
186
SqlParameter param = new
SqlParameter
();
197
param = new
SqlParameter
();
207
param = new
SqlParameter
();
274
SqlParameter param = new
SqlParameter
();