1 write to FixedLength
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
64this.FixedLength = fixedLength;
54 references to FixedLength
System.Data (54)
fx\src\data\System\Data\SqlClient\SqlParameter.cs (2)
342 maxlen = (long)mt.FixedLength; 811_actualSize = mt.FixedLength;
fx\src\data\System\Data\SqlClient\TdsParser.cs (51)
8876stateObj.WriteByte(checked((byte)MetaType.MetaDecimal.FixedLength)); // SmiMetaData's length and actual wire format's length are different 9958if (type.FixedLength == 4) 9961Debug.Assert(type.FixedLength == 8, "Invalid length for SqlDouble type!"); 9995Debug.Assert(type.FixedLength == 1, "Invalid length for SqlBoolean type"); 10005if (type.FixedLength == 1) 10008if (type.FixedLength == 2) 10011if (type.FixedLength == 4) 10014Debug.Assert(type.FixedLength == 8, "invalid length for SqlIntN type: " + type.FixedLength.ToString(CultureInfo.InvariantCulture)); 10065Debug.Assert(type.FixedLength <= 17, "Decimal length cannot be greater than 17 bytes"); 10072if (type.FixedLength == 4) { 10088WriteSqlMoney((SqlMoney)value, type.FixedLength, stateObj); 10519if (type.FixedLength == 4) 10522Debug.Assert(type.FixedLength == 8, "Invalid length for SqlDouble type!"); 10559Debug.Assert(type.FixedLength == 1, "Invalid length for SqlBoolean type"); 10569if (type.FixedLength == 1) 10571else if (type.FixedLength == 2) 10573else if (type.FixedLength == 4) 10576Debug.Assert(type.FixedLength == 8, "invalid length for SqlIntN type: " + type.FixedLength.ToString(CultureInfo.InvariantCulture)); 10648Debug.Assert(type.FixedLength <= 17, "Decimal length cannot be greater than 17 bytes"); 10653Debug.Assert(type.FixedLength <= 0xff, "Invalid Fixed Length"); 10655TdsDateTime dt = MetaType.FromDateTime((DateTime)value, (byte)type.FixedLength); 10657if (type.FixedLength == 4) { 10672WriteCurrency((Decimal)value, type.FixedLength, stateObj); 10756if (type.FixedLength == 4) 10759Debug.Assert(type.FixedLength == 8, "Invalid length for SqlDouble type!"); 10784Debug.Assert(type.FixedLength == 1, "Invalid length for SqlBoolean type"); 10791if (type.FixedLength == 1) 10794if (type.FixedLength == 2) 10797if (type.FixedLength == 4) 10800Debug.Assert(type.FixedLength == 8, "invalid length for SqlIntN type: " + type.FixedLength.ToString(CultureInfo.InvariantCulture)); 10836Debug.Assert(type.FixedLength <= 17, "Decimal length cannot be greater than 17 bytes"); 10840Debug.Assert(type.FixedLength <= 0xff, "Invalid Fixed Length"); 10842TdsDateTime dt = MetaType.FromDateTime((DateTime)value, (byte)type.FixedLength); 10844if (type.FixedLength == 4) { 10882return SerializeCurrency((Decimal)value, type.FixedLength, stateObj); 10927if (type.FixedLength == 4) 10930Debug.Assert(type.FixedLength == 8, "Invalid length for SqlDouble type!"); 10957Debug.Assert(type.FixedLength == 1, "Invalid length for SqlBoolean type"); 10965if (type.FixedLength == 1) 10968if (type.FixedLength == 2) 10971if (type.FixedLength == 4) 10974Debug.Assert(type.FixedLength == 8, "invalid length for SqlIntN type: " + type.FixedLength.ToString(CultureInfo.InvariantCulture)); 11009Debug.Assert(type.FixedLength <= 17, "Decimal length cannot be greater than 17 bytes"); 11015if (type.FixedLength == 4) { 11054return SerializeSqlMoney((SqlMoney)value, type.FixedLength, stateObj); 11108Debug.Assert(type.FixedLength <= 0xff, "WriteParameterVarLen: invalid one byte length!"); 11109stateObj.WriteByte((byte)(type.FixedLength & 0xff)); // 1 byte for everything else
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
472_stateObj.WriteByte(checked((byte)MetaType.MetaDecimal.FixedLength)); // SmiMetaData's length and actual wire format's length are different