55 references to DateTimeOffset
System.Data (43)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (5)
80
SqlDbType.
DateTimeOffset
, // System.DateTimeOffset
358
case SqlDbType.
DateTimeOffset
:
480
md.SqlDbType != SqlDbType.
DateTimeOffset
&&
678
else if (dbType == SqlDbType.DateTime2 || dbType == SqlDbType.
DateTimeOffset
|| dbType == SqlDbType.Time) {
906
case SqlDbType.
DateTimeOffset
:
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (4)
128
internal static readonly SmiMetaData DefaultDateTimeOffset = new SmiMetaData(SqlDbType.
DateTimeOffset
, 10, 0, 7, SqlCompareOptions.None); // SqlDbType.DateTimeOffset
421
case SqlDbType.
DateTimeOffset
:
477
case SqlDbType.
DateTimeOffset
:
620
(SqlDbType.Udt <= dbType && SqlDbType.
DateTimeOffset
>= dbType);
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (9)
821
case SqlDbType.
DateTimeOffset
:
964
case SqlDbType.
DateTimeOffset
:
1280
case SqlDbType.
DateTimeOffset
:
2008
case SqlDbType.
DateTimeOffset
: { // block to scope sqlReader local and avoid conflicts
2291
case SqlDbType.
DateTimeOffset
:
2746
Debug.Assert( SqlDbType.BigInt == 0 && (int)SqlDbType.
DateTimeOffset
== __canAccessGetterDirectly.GetLength(1) - 1, "SqlDbType does not match with __canAccessGetterDirectly" );
2748
Debug.Assert( SqlDbType.BigInt <= metaData.SqlDbType && SqlDbType.
DateTimeOffset
>= metaData.SqlDbType );
2766
Debug.Assert( SqlDbType.BigInt == 0 && (int)SqlDbType.
DateTimeOffset
== __canAccessSetterDirectly.GetLength(1) - 1, "SqlDbType does not match with __canAccessSetterDirectly" );
2768
Debug.Assert( SqlDbType.BigInt <= metaData.SqlDbType && SqlDbType.
DateTimeOffset
>= metaData.SqlDbType );
fx\src\data\System\Data\Sql\SqlMetaData.cs (7)
194
case SqlDbType.
DateTimeOffset
:
423
SqlDbType.
DateTimeOffset
== dbType ||
606
} else if (SqlDbType.Time == dbType || SqlDbType.DateTime2 == dbType || SqlDbType.
DateTimeOffset
== dbType) {
1036
if (SqlDbType.
DateTimeOffset
!= SqlDbType)
1299
smd = new SqlMetaData(name, SqlDbType.
DateTimeOffset
, 0, InferScaleFromTimeTicks(((DateTimeOffset)value).Ticks));
1549
if ( SqlDbType.BigInt <= dbType && SqlDbType.
DateTimeOffset
>= dbType )
1633
new SqlMetaData("datetimeoffset", SqlDbType.
DateTimeOffset
,
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
546
case SqlDbType.
DateTimeOffset
:
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
631
SqlDbType.
DateTimeOffset
== colMetaData.SqlDbType) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (5)
159
SqlDbType.
DateTimeOffset
== type;
167
return (type == SqlDbType.Time || type == SqlDbType.DateTime2 || type == SqlDbType.
DateTimeOffset
);
212
case SqlDbType.
DateTimeOffset
: return MetaDateTimeOffset;
627
sqlType = SqlDbType.
DateTimeOffset
;
832
(255, 7, -1, false, false, false, TdsEnums.SQLDATETIMEOFFSET, TdsEnums.SQLDATETIMEOFFSET, MetaTypeName.DATETIMEOFFSET, typeof(System.DateTimeOffset), typeof(System.DateTimeOffset), SqlDbType.
DateTimeOffset
, DbType.DateTimeOffset, 1);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (3)
874
case SqlDbType.
DateTimeOffset
:
952
else if ((typeof(string) == currentType) && (SqlDbType.
DateTimeOffset
== destinationType.SqlDbType)) {
955
else if ((typeof(DateTime) == currentType) && (SqlDbType.
DateTimeOffset
== destinationType.SqlDbType)) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (5)
4250
case SqlDbType.
DateTimeOffset
:
4875
case SqlDbType.
DateTimeOffset
:
9006
case SqlDbType.
DateTimeOffset
:
9239
case SqlDbType.
DateTimeOffset
:
9349
case SqlDbType.
DateTimeOffset
:
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
526
return SqlDbType.Date == type || SqlDbType.Time == type || SqlDbType.DateTime2 == type || SqlDbType.
DateTimeOffset
== type;
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (2)
83
case SqlDbType.
DateTimeOffset
:
603
value.SqlDbType == SqlDbType.
DateTimeOffset
||
System.Data.Entity (1)
System\Data\SqlClient\SqlProviderServices.cs (1)
474
return SqlDbType.
DateTimeOffset
;
System.Data.Linq (11)
SqlClient\Common\SqlFactory.cs (2)
280
return (((SqlTypeSystem.SqlType)(exp.SqlType)).SqlDbType == SqlDbType.
DateTimeOffset
);
285
return (sqlDbType == SqlDbType.Time || sqlDbType == SqlDbType.DateTime2 || sqlDbType == SqlDbType.
DateTimeOffset
);
SqlClient\SqlTypeSystemProvider.cs (9)
62
case SqlDbType.
DateTimeOffset
: return theDateTimeOffset;
97
case SqlDbType.
DateTimeOffset
:
151
static private readonly SqlType theDateTimeOffset = new SqlType(SqlDbType.
DateTimeOffset
);
428
case SqlDbType.
DateTimeOffset
:
464
case SqlDbType.
DateTimeOffset
:
731
case SqlDbType.
DateTimeOffset
: return 26;
788
case SqlDbType.
DateTimeOffset
:
1169
case SqlDbType.
DateTimeOffset
:
1524
return Create(SqlDbType.
DateTimeOffset
);