20 instantiations of SqlDateTime
System.Data (20)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (4)
443result = new SqlDateTime( temp ); 1008result = new SqlDateTime( GetDateTime_Unchecked( sink, getters, ordinal ) ); 1041result = new SqlDateTime( GetDateTime_Unchecked( sink, getters, ordinal ) ); 1194SqlDateTime dt = new SqlDateTime( GetDateTime_Unchecked( sink, getters, ordinal ) );
fx\src\data\System\Data\Common\SQLConvert.cs (1)
634return new SqlDateTime(XmlConvert.ToDateTime((string)value, XmlDateTimeSerializationMode.RoundtripKind));
fx\src\data\System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (1)
123SqlDateTime newValue = new SqlDateTime();
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
508return new SqlDateTime(_value._dateTimeInfo.daypart, _value._dateTimeInfo.timepart);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (5)
522sqlVal = new SqlDateTime((DateTime)comVal); 841sqlDateTime = new SqlDateTime(dateTime); 848sqlDateTime = new SqlDateTime(dateTime.AddSeconds(30)); 858return new SqlDateTime(sqlDays, sqlTime * SqlDateTime.SQLTicksPerMinute).Value; 862return new SqlDateTime(sqlDays, sqlTime).Value;
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (8)
156this = new SqlDateTime(dayticks, timeticks); 208this = new SqlDateTime(day, time); 264return new SqlDateTime(day, time); 330return new SqlDateTime(value); 360return new SqlDateTime(dt); 669public static readonly SqlDateTime MinValue = new SqlDateTime(MinDay, 0); 670public static readonly SqlDateTime MaxValue = new SqlDateTime(MaxDay, MaxTime); 672public static readonly SqlDateTime Null = new SqlDateTime(true);
185 references to SqlDateTime
System.Data (155)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
69SqlDateTime GetSqlDateTime( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (1)
68void SetSqlDateTime( int ordinal, SqlDateTime value );
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
117ht.Add( typeof( SqlDateTime ), ExtendedClrTypeCode.SqlDateTime ); 265else if (value.GetType() == typeof( SqlDateTime ))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (2)
332public virtual SqlDateTime GetSqlDateTime( int ordinal ) { 685public virtual void SetSqlDateTime( int ordinal, SqlDateTime value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (2)
390public virtual SqlDateTime GetSqlDateTime( int ordinal ) { 743public virtual void SetSqlDateTime( int ordinal, SqlDateTime value ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
333public virtual SqlDateTime GetSqlDateTime(int ordinal) { 533public virtual void SetSqlDateTime(int ordinal, SqlDateTime value) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (11)
435internal static SqlDateTime GetSqlDateTime( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) { 436SqlDateTime result; 439result = SqlDateTime.Null; 451result = (SqlDateTime) obj; 1088SqlDateTime.Null, // SqlDbType.DateTime 1099SqlDateTime.Null, // SqlDbType.SmallDateTime 1194SqlDateTime dt = new SqlDateTime( GetDateTime_Unchecked( sink, getters, ordinal ) ); 1486internal static void SetSqlDateTime( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlDateTime value ) { 1619case ExtendedClrTypeCode.SqlDateTime: SetSqlDateTime_Checked( sink, setters, ordinal, metaData, (SqlDateTime) value ); break; 2444private static void SetSqlDateTime_Checked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlDateTime value) { 3478private static void SetSqlDateTime_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SqlDateTime value ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
54typeof(SqlDateTime),
fx\src\data\System\Data\Common\DataStorage.cs (1)
104typeof(SqlDateTime),
fx\src\data\System\Data\Common\SQLConvert.cs (5)
293public static SqlDateTime ConvertToSqlDateTime(object value) { 296return SqlDateTime.Null; 303return (SqlDateTime)value; 307throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlDateTime)); 723return XmlConvert.ToString(((SqlDateTime)value).Value, XmlDateTimeSerializationMode.RoundtripKind);
fx\src\data\System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (21)
22private SqlDateTime[] values; 25: base(column, typeof(SqlDateTime), SqlDateTime.Null, SqlDateTime.Null, StorageType.SqlDateTime) { 33SqlDateTime min = SqlDateTime.MaxValue; 38if ((SqlDateTime.LessThan(values[record], min)).IsTrue) 48SqlDateTime max = SqlDateTime.MinValue; 53if ((SqlDateTime.GreaterThan(values[record], max)).IsTrue) 78throw ExprException.Overflow(typeof(SqlDateTime)); 88return values[recordNo].CompareTo((SqlDateTime)value); 115SqlDateTime[] newValues = new SqlDateTime[capacity]; 123SqlDateTime newValue = new SqlDateTime(); 132return ((SqlDateTime)tmp); 137Debug.Assert((value.GetType() == typeof(SqlDateTime)), "wrong input type"); 148return new SqlDateTime[recordCount]; 152SqlDateTime[] typedStore = (SqlDateTime[]) store; 158values = (SqlDateTime[]) store;
fx\src\data\System\Data\Filter\BinaryNode.cs (16)
378if (vLeft is TimeSpan && vRight is SqlDateTime) { 379SqlDateTime rValue = (SqlDateTime)SqlConvert.ConvertToSqlDateTime(vRight); 380value = (SqlDateTime)SqlConvert.ConvertToSqlDateTime((DateTime)rValue.Value + (TimeSpan)vLeft); 382else if (vLeft is SqlDateTime && vRight is TimeSpan) { 383SqlDateTime lValue = (SqlDateTime)SqlConvert.ConvertToSqlDateTime(vLeft); 384value = (SqlDateTime)SqlConvert.ConvertToSqlDateTime((DateTime)lValue.Value + (TimeSpan)vRight); 466if (vLeft is TimeSpan && vRight is SqlDateTime) { 467SqlDateTime rValue = (SqlDateTime)SqlConvert.ConvertToSqlDateTime(vRight); 468value = (SqlDateTime)SqlConvert.ConvertToSqlDateTime((DateTime)rValue.Value - (TimeSpan)vLeft); 470else if (vLeft is SqlDateTime && vRight is TimeSpan) { 471SqlDateTime lValue = (SqlDateTime)SqlConvert.ConvertToSqlDateTime(vLeft); 472value = (SqlDateTime)SqlConvert.ConvertToSqlDateTime((DateTime)lValue.Value - (TimeSpan)vRight);
fx\src\data\System\Data\Sql\SqlMetaData.cs (5)
853public SqlDateTime Adjust(SqlDateTime value) { 1082else if (dataType == typeof(SqlDateTime)) 1083value = this.Adjust((SqlDateTime)value); 1211else if (dataType == typeof(SqlDateTime))
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (5)
188return SqlDateTime.ToDateTime(_value._dateTimeInfo.daypart, _value._dateTimeInfo.timepart); 502internal SqlDateTime SqlDateTime { 506return SqlDateTime.Null; 510return (SqlDateTime)SqlValue; // anything else we haven't thought of goes through boxing. 744case SqlBuffer.StorageType.DateTime: return typeof(SqlDateTime);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2318virtual public SqlDateTime GetSqlDateTime(int i) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
773public override SqlDateTime GetSqlDateTime(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (10)
314else if (dataType == typeof(SqlDateTime)) 400else if (sqlType == typeof(SqlDateTime)) return SqlDateTime.Null; 452else if (sqlVal is SqlDateTime) 453comVal = ((SqlDateTime)sqlVal).Value; 791(23, 3, 8, true, false, false, TdsEnums.SQLDATETIME, TdsEnums.SQLDATETIMN, MetaTypeName.DATETIME, typeof(System.DateTime), typeof(SqlDateTime), SqlDbType.DateTime, DbType.DateTime, 0); 794(16, 0, 4, true, false, false, TdsEnums.SQLDATETIM4, TdsEnums.SQLDATETIMN, MetaTypeName.SMALLDATETIME, typeof(System.DateTime), typeof(SqlDateTime), SqlDbType.SmallDateTime, DbType.DateTime, 0); 835SqlDateTime sqlDateTime; 849tdsDateTime.time = sqlDateTime.TimeTicks / SqlDateTime.SQLTicksPerMinute; 858return new SqlDateTime(sqlDays, sqlTime * SqlDateTime.SQLTicksPerMinute).Value;
fx\src\data\System\Data\SqlClient\TdsParser.cs (8)
5153value.SetToDateTime(daypartShort, timepartShort * SqlDateTime.SQLTicksPerMinute); 5582value.SetToDateTime(daypartShort, timepartShort * SqlDateTime.SQLTicksPerMinute); 10070SqlDateTime dt = (SqlDateTime)value; 10077WriteShort(dt.TimeTicks / SqlDateTime.SQLTicksPerMinute, stateObj); 11013SqlDateTime dt = (SqlDateTime)value; 11030bPart = SerializeShort(dt.TimeTicks / SqlDateTime.SQLTicksPerMinute, stateObj);
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (56)
218private static TimeSpan ToTimeSpan(SqlDateTime value) { 224private static DateTime ToDateTime(SqlDateTime value) { 241private static SqlDateTime FromTimeSpan(TimeSpan value) { 267private static SqlDateTime FromDateTime(DateTime value) { 276return SqlDateTime.MaxValue; 329public static implicit operator SqlDateTime(DateTime value) { 334public static explicit operator DateTime(SqlDateTime x) { 346public static SqlDateTime Parse(String s) { 350return SqlDateTime.Null; 369public static SqlDateTime operator +(SqlDateTime x, TimeSpan t) { 374public static SqlDateTime operator -(SqlDateTime x, TimeSpan t) { 383public static SqlDateTime Add(SqlDateTime x, TimeSpan t) { 388public static SqlDateTime Subtract(SqlDateTime x, TimeSpan t) { 470public static explicit operator SqlDateTime(SqlString x) { 471return x.IsNull ? SqlDateTime.Null : SqlDateTime.Parse(x.Value); 501public static SqlBoolean operator==(SqlDateTime x, SqlDateTime y) { 505public static SqlBoolean operator!=(SqlDateTime x, SqlDateTime y) { 509public static SqlBoolean operator<(SqlDateTime x, SqlDateTime y) { 514public static SqlBoolean operator>(SqlDateTime x, SqlDateTime y) { 519public static SqlBoolean operator<=(SqlDateTime x, SqlDateTime y) { 524public static SqlBoolean operator>=(SqlDateTime x, SqlDateTime y) { 534public static SqlBoolean Equals(SqlDateTime x, SqlDateTime y) { 539public static SqlBoolean NotEquals(SqlDateTime x, SqlDateTime y) { 544public static SqlBoolean LessThan(SqlDateTime x, SqlDateTime y) { 549public static SqlBoolean GreaterThan(SqlDateTime x, SqlDateTime y) { 554public static SqlBoolean LessThanOrEqual(SqlDateTime x, SqlDateTime y) { 559public static SqlBoolean GreaterThanOrEqual(SqlDateTime x, SqlDateTime y) { 577if (value is SqlDateTime) { 578SqlDateTime i = (SqlDateTime)value; 582throw ADP.WrongType(value.GetType(), typeof(SqlDateTime)); 585public int CompareTo(SqlDateTime value) { 600if (!(value is SqlDateTime)) { 604SqlDateTime i = (SqlDateTime)value; 643SqlDateTime st = FromDateTime(dt); 669public static readonly SqlDateTime MinValue = new SqlDateTime(MinDay, 0); 670public static readonly SqlDateTime MaxValue = new SqlDateTime(MaxDay, MaxTime); 672public static readonly SqlDateTime Null = new SqlDateTime(true);
fx\src\data\System\Data\SQLTypes\SQLString.cs (3)
582public static explicit operator SqlString(SqlDateTime x) { 702public SqlDateTime ToSqlDateTime() { 703return (SqlDateTime)this;
fx\src\data\System\Data\xmlsaver.cs (1)
208if (type == typeof(DateTime) || type == typeof(SqlDateTime) )
System.Workflow.Runtime (30)
Hosting\SqlPersistenceWorkflowInstanceDescription.cs (3)
33private SqlDateTime nextTimerExpiration; 35internal SqlPersistenceWorkflowInstanceDescription(Guid workflowInstanceId, WorkflowStatus status, bool isBlocked, string suspendOrTerminateDescription, SqlDateTime nextTimerExpiration) 48public SqlDateTime NextTimerExpiration { get { return nextTimerExpiration; } }
Hosting\SqlWorkflowPersistenceService.cs (8)
41public SqlDateTime NextTimer; 182command.Parameters.Add(this.dbResourceAllocator.NewDbParameter("@ownedUntil", ownedUntil == DateTime.MaxValue ? SqlDateTime.MaxValue : ownedUntil)); 258command.Parameters.Add(this.dbResourceAllocator.NewDbParameter("@ownedUntil", ownedUntil == DateTime.MaxValue ? SqlDateTime.MaxValue : ownedUntil)); 307command.Parameters.Add(this.dbResourceAllocator.NewDbParameter("@ownedUntil", ownedUntil == DateTime.MaxValue ? SqlDateTime.MaxValue : ownedUntil)); 372command.Parameters.Add(this.dbResourceAllocator.NewDbParameter("@ownedUntil", ownedUntil == DateTime.MaxValue ? SqlDateTime.MaxValue : ownedUntil)); 424command.Parameters.Add(this.dbResourceAllocator.NewDbParameter("@ownedUntil", timeout == DateTime.MaxValue ? SqlDateTime.MaxValue : timeout)); 657(SqlDateTime)dr.GetDateTime(4) 1003item.NextTimer = sub == null ? SqlDateTime.MaxValue : sub.ExpiresAt;
Tracking\SqlTrackingQuery.cs (4)
200if (opt.StatusMinDateTime < SqlDateTime.MinValue.Value) 201param.Value = SqlDateTime.MinValue.Value; 210if (opt.StatusMaxDateTime > SqlDateTime.MaxValue.Value) 211param.Value = SqlDateTime.MaxValue.Value;
Tracking\SqlTrackingWorkflowInstance.cs (15)
34_actMinDT = SqlDateTime.MinValue.Value, 35_userMinDT = SqlDateTime.MinValue.Value, 36_instMinDT = SqlDateTime.MinValue.Value, 37_childMinDT = SqlDateTime.MinValue.Value, 38_changesMinDT = SqlDateTime.MinValue.Value, 39_invMinDT = SqlDateTime.MinValue.Value; 213DateTime tmpMin = SqlDateTime.MinValue.Value; 323if (tmpMin > SqlDateTime.MinValue.Value) 349DateTime tmpMin = SqlDateTime.MinValue.Value; 469if (tmpMin > SqlDateTime.MinValue.Value) 490DateTime tmpMin = SqlDateTime.MinValue.Value; 554cmd.Parameters.Add(new SqlParameter("@BeginDateTime", SqlDateTime.MinValue.Value)); 564if (tmpMin > SqlDateTime.MinValue.Value) 785DateTime tmpMin = SqlDateTime.MinValue.Value; 798if (tmpMin > SqlDateTime.MinValue.Value)