Implemented interface member:
property
Size
System.Data.IDbDataParameter.Size
2 overrides of Size
System.Data (1)
fx\src\Data\System\Data\ProviderBase\DbParameterHelper.cs (1)
120
override public int
Size
{ // V1.2.3300, XXXParameter V1.0.3300
System.Data.Entity (1)
System\Data\EntityClient\DbParameterHelper.cs (1)
103
override public int
Size
{
52 writes to Size
System.Activities.DurableInstancing (16)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (4)
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 });
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (12)
82
parameters.Add(new SqlParameter { ParameterName = "@suspensionExceptionName", SqlDbType = SqlDbType.NVarChar,
Size
= 450, Value = (object)suspensionExceptionName ?? DBNull.Value });
194
parameters.Add(new SqlParameter { ParameterName = parameterName, SqlDbType = SqlDbType.VarBinary,
Size
= parameterSize, Value = parameterValue });
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 });
511
parameters.Add(new SqlParameter { ParameterName = "@concatenatedKeyProperties", SqlDbType = SqlDbType.VarBinary,
Size
= -1, Value = (object)concatenatedKeyProperties ?? DBNull.Value });
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 });
597
parameters.Add(new SqlParameter() { SqlDbType = SqlDbType.NVarChar,
Size
= 400, ParameterName = promotionNameArgument, Value = promotion.Key });
System.Data (19)
fx\src\data\System\Data\Common\DBCommandBuilder.cs (2)
1034
p.
Size
= 0; // don't specify parameter.Size so that we don't silently truncate to the metadata size
1080
p.
Size
= 0; // don't specify parameter.Size so that we don't silently truncate to the metadata size
fx\src\data\System\Data\Odbc\OdbcCommandBuilder.cs (1)
222
parameter.
Size
= (int)reader.GetInt32(ODBC32.COLUMN_SIZE-1);
fx\src\data\System\Data\Odbc\OdbcParameter.cs (4)
100
Size
= size;
106
Size
= size;
125
this.
Size
= size;
144
this.
Size
= size;
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (1)
227
parameter.
Size
= Convert.ToInt32(dataRow[maxLen, DataRowVersion.Default], CultureInfo.InvariantCulture);
fx\src\data\System\Data\OleDb\OleDbParameter.cs (4)
52
Size
= size;
58
Size
= size;
71
Size
= size;
90
Size
= size;
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
2872
p.
Size
= size;
3797
Size
= attestationParameters.Length,
fx\src\data\System\Data\SqlClient\SqlParameter.cs (5)
138
this.
Size
= size;
158
this.
Size
= size;
185
this.
Size
= size;
191
this.
Size
= size;
1584
Size
= (int)(SmiMetaData.UnlimitedMaxLengthIndicator);
System.Data.Entity (11)
System\Data\Common\DbCommandDefinition.cs (2)
259
parameter.
Size
= (int)maxLengthFacet.Value;
264
parameter.
Size
= Int32.MaxValue;
System\Data\EntityClient\EntityCommandDefinition.cs (1)
522
storeParameter.
Size
= entityParameter.Size;
System\Data\SqlClient\SqlProviderServices.cs (8)
168
parameter.
Size
= 0;
181
parameter.
Size
= previousSize;
193
parameter.
Size
= suggestedLength;
199
parameter.
Size
= -1;
367
result.
Size
= Math.Max(result.Size, size.Value);
371
result.
Size
= size.Value;
380
result.
Size
= GetDefaultStringMaxLength(version, sqlDbType);
384
result.
Size
= GetDefaultBinaryMaxLength(version);
System.Data.Linq (1)
SqlClient\SqlTypeSystemProvider.cs (1)
1004
parameter.
Size
= determinedSize.Value;
System.Web (3)
State\sqlstateclientmanager.cs (2)
693
cmd.Parameters[1].
Size
= length;
778
cmd.Parameters[1].
Size
= length;
UI\WebControls\SqlDataSourceView.cs (1)
1211
dbParameter.
Size
= parameter.Size;
System.Workflow.Runtime (2)
Tracking\SqlTrackingQuery.cs (2)
223
param.
Size
= 128;
228
param.
Size
= 128;
50 references to Size
System.Data (41)
fx\src\data\System\Data\Odbc\OdbcParameter.cs (5)
523
_internalSize = _internalShouldSerializeSize ?
Size
: ValueSize(_internalValue);
1055
ctorValues = new object[] { p.ParameterName, p.OdbcType, p.
Size
};
1062
ctorValues = new object[] { p.ParameterName, p.OdbcType, p.
Size
, p.SourceColumn };
1075
p.ParameterName, p.OdbcType, p.
Size
, p.Direction,
1086
p.ParameterName, p.OdbcType, p.
Size
, p.Direction,
fx\src\data\System\Data\OleDb\OleDbParameter.cs (6)
298
size =
Size
;
320
size =
Size
;
602
ctorValues = new object[] { p.ParameterName, p.OleDbType, p.
Size
};
609
ctorValues = new object[] { p.ParameterName, p.OleDbType, p.
Size
, p.SourceColumn };
622
p.ParameterName, p.OleDbType, p.
Size
, p.Direction,
633
p.ParameterName, p.OleDbType, p.
Size
, p.Direction,
fx\src\data\System\Data\SqlClient\SqlCommand.cs (4)
3762
paramCopy = new SqlParameter(param.ParameterName, param.SqlDbType, param.
Size
, param.Direction, param.Precision, param.Scale, param.SourceColumn, param.SourceVersion,
5825
int size = sqlParam.
Size
;
6267
int size = param.
Size
;
6337
ValueUtilsSmi.SetCompatibleValueV200(EventSink, requestExecutor, index, requestMetaData[index], value, typeCode, param.Offset, param.
Size
, peekAheadValues[index]);
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (2)
159
int size = p.
Size
;
173
int size = p.
Size
;
fx\src\data\System\Data\SqlClient\SqlParameter.cs (21)
344
else if (
Size
> 0 ||
Size
< 0) {
345
maxlen =
Size
; // Bug Fix: 302768, 302695, 302694, 302693
381
long maxLen = this.
Size
;
828
_actualSize = (ShouldSerializeSize() ?
Size
: 0);
841
_actualSize = (ShouldSerializeSize() ?
Size
: 0);
852
_actualSize = (ShouldSerializeSize() ?
Size
: 0);
998
if (
Size
> 0) {
999
char[] buffer = new char[
Size
];
1000
int nRead = ((TextDataFeed)value)._source.ReadBlock(buffer, 0,
Size
);
1010
if (
Size
> 0) {
1011
byte[] buffer = new byte[
Size
];
1014
while (totalRead <
Size
) {
1015
int nRead = sourceStream.Read(buffer, totalRead,
Size
- totalRead);
1021
if (totalRead <
Size
) {
1086
return ShouldSerializeSize() ?
Size
: ValueSize(CoercedValue);
1539
long sizeInCharacters = this.
Size
;
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,
fx\src\data\System\Data\SqlClient\TdsParser.cs (3)
8523
writeParamTask = WriteValue(value, mt, isParameterEncrypted ? (byte)0 : param.GetActualScale(), actualSize, codePageByteSize, isParameterEncrypted ? 0 : param.Offset, stateObj, isParameterEncrypted ? 0 : param.
Size
, isDataFeed);
8826
0 < param.
Size
? param.
Size
: -1,
System.Data.Entity (6)
System\Data\SqlClient\SqlProviderServices.cs (6)
165
int previousSize = parameter.
Size
;
179
if (parameter.
Size
< previousSize)
191
if (parameter.
Size
< suggestedLength)
195
else if (parameter.
Size
> suggestedLength)
359
if ((isOutParam || result.
Size
!= size.Value))
367
result.Size = Math.Max(result.
Size
, size.Value);
System.Data.Linq (3)
SqlClient\SqlProvider.cs (1)
1171
p.
Size
.ToString(System.Globalization.CultureInfo.CurrentCulture),
SqlClient\SqlTypeSystemProvider.cs (2)
1012
if (declaredType.Size.HasValue && parameter.
Size
<= declaredType.Size || declaredType.IsLargeType) {
1494
if (largestDeclarableSize.HasValue && largestDeclarableSize.Value >= parameter.
Size
)