1 write to days
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
851
tdsDateTime.
days
= sqlDateTime.DayTicks;
17 references to days
System.Data (17)
fx\src\data\System\Data\SqlClient\TdsParser.cs (12)
5930
WriteInt(dt.
days
, stateObj);
6090
WriteInt(dt.
days
, stateObj);
10658
if (0 > dt.
days
|| dt.
days
> UInt16.MaxValue)
10659
throw SQL.SmallDateTimeOverflow(MetaType.ToDateTime(dt.
days
, dt.time, 4).ToString(CultureInfo.InvariantCulture));
10661
WriteShort(dt.
days
, stateObj);
10665
WriteInt(dt.
days
, stateObj);
10845
if (0 > dt.
days
|| dt.
days
> UInt16.MaxValue)
10846
throw SQL.SmallDateTimeOverflow(MetaType.ToDateTime(dt.
days
, dt.time, 4).ToString(CultureInfo.InvariantCulture));
10855
byte[] bPart = SerializeShort(dt.
days
, stateObj);
10871
byte[] bPart = SerializeInt(dt.
days
, stateObj);
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (5)
494
_stateObj.Parser.WriteInt(dt.
days
, _stateObj);
507
Debug.Assert (0 <= dt.
days
&& dt.
days
<= UInt16.MaxValue, "Invalid DateTime '" + value + "' for SmallDateTime");
509
_stateObj.Parser.WriteShort(dt.
days
, _stateObj);
513
_stateObj.Parser.WriteInt(dt.
days
, _stateObj);