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