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