83 references to DateTime
System.Data (33)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (6)
42
SqlDbType.
DateTime
, // System.DateTime
63
SqlDbType.
DateTime
, // System.Data.SqlTypes.SqlDateTime
258
goto case SqlDbType.
DateTime
;
261
case SqlDbType.
DateTime
:
464
if (SqlDbType.
DateTime
== returnType) {
769
case SqlDbType.
DateTime
:
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (3)
102
internal static readonly SmiMetaData DefaultDateTime = new SmiMetaData(SqlDbType.
DateTime
, 8, 23, 3, SqlCompareOptions.None); // SqlDbType.DateTime
347
case SqlDbType.
DateTime
:
455
case SqlDbType.
DateTime
:
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (1)
345
|| _metadata.SqlDbType == SqlDbType.
DateTime
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (7)
859
case SqlDbType.
DateTime
:
1007
case SqlDbType.
DateTime
:
1192
case SqlDbType.
DateTime
:
1744
case SqlDbType.
DateTime
:
1870
case SqlDbType.
DateTime
:
2064
case SqlDbType.
DateTime
:
2187
case SqlDbType.
DateTime
:
fx\src\data\System\Data\Sql\SqlMetaData.cs (7)
162
case SqlDbType.
DateTime
:
420
SqlDbType.
DateTime
== dbType ||
782
if (SqlDbType.
DateTime
== SqlDbType || SqlDbType.SmallDateTime == SqlDbType) {
854
if (SqlDbType.
DateTime
!= SqlDbType &&
1135
case TypeCode.DateTime: smd = new SqlMetaData(name, SqlDbType.
DateTime
); break;
1212
smd = new SqlMetaData(name, SqlDbType.
DateTime
);
1573
new SqlMetaData("datetime", SqlDbType.
DateTime
,
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
604
case SqlDbType.
DateTime
:
fx\src\data\System\Data\SqlClient\SqlEnums.cs (3)
179
case SqlDbType.
DateTime
: return MetaDateTime;
563
sqlType = SqlDbType.
DateTime
;
791
(23, 3, 8, true, false, false, TdsEnums.SQLDATETIME, TdsEnums.SQLDATETIMN, MetaTypeName.DATETIME, typeof(System.DateTime), typeof(SqlDateTime), SqlDbType.
DateTime
, DbType.DateTime, 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
4844
case SqlDbType.
DateTime
:
8870
case SqlDbType.
DateTime
:
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (3)
69
case SqlDbType.
DateTime
:
511
} else if (SqlDbType.
DateTime
== _metaData.SqlDbType) {
601
value.SqlDbType == SqlDbType.
DateTime
||
System.Data.Entity (1)
System\Data\SqlClient\SqlProviderServices.cs (1)
483
return SqlDbType.
DateTime
;
System.Data.Linq (10)
SqlClient\Common\SqlFactory.cs (1)
268
return (sqlDbType == SqlDbType.
DateTime
|| sqlDbType == SqlDbType.SmallDateTime);
SqlClient\SqlTypeSystemProvider.cs (9)
58
case SqlDbType.
DateTime
: return theDateTime;
94
case SqlDbType.
DateTime
:
147
static private readonly SqlType theDateTime = new SqlType(SqlDbType.
DateTime
);
462
case SqlDbType.
DateTime
:
729
case SqlDbType.
DateTime
: return 24;
786
case SqlDbType.
DateTime
:
1166
case SqlDbType.
DateTime
:
1444
return Create(SqlDbType.
DateTime
);
1564
return Create(SqlDbType.
DateTime
);
System.Web (33)
Management\SqlWebEventProvider.cs (2)
104
sqlCommand.Parameters.Add(new SqlParameter("@EventTimeUtc", SqlDbType.
DateTime
));
105
sqlCommand.Parameters.Add(new SqlParameter("@EventTime", SqlDbType.
DateTime
));
Profile\SqlProfileProvider.cs (6)
169
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
238
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
392
cmd.Parameters.Add(CreateInputParam("@InactiveSinceDate", SqlDbType.
DateTime
, userInactiveSinceDate.ToUniversalTime()));
426
cmd.Parameters.Add(CreateInputParam("@InactiveSinceDate", SqlDbType.
DateTime
, userInactiveSinceDate.ToUniversalTime()));
457
args[0] = CreateInputParam("@InactiveSinceDate", SqlDbType.
DateTime
, userInactiveSinceDate.ToUniversalTime());
477
args[1] = CreateInputParam("@InactiveSinceDate", SqlDbType.
DateTime
, userInactiveSinceDate.ToUniversalTime());
Security\SQLMembershipProvider.cs (14)
375
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, dt));
630
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
752
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
830
cmd.Parameters.Add(CreateInputParam("@LastLoginDate", SqlDbType.
DateTime
, user.LastLoginDate.ToUniversalTime()));
831
cmd.Parameters.Add(CreateInputParam("@LastActivityDate", SqlDbType.
DateTime
, user.LastActivityDate.ToUniversalTime()));
833
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
944
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
1033
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
1324
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
1591
cmd.Parameters.Add( CreateInputParam( "@CurrentTimeUtc", SqlDbType.
DateTime
, dtNow));
1592
cmd.Parameters.Add( CreateInputParam( "@LastLoginDate", SqlDbType.
DateTime
, isPasswordCorrect ? dtNow : lastLoginDate));
1593
cmd.Parameters.Add( CreateInputParam( "@LastActivityDate", SqlDbType.
DateTime
, isPasswordCorrect ? dtNow : lastActivityDate));
1649
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
1730
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
Security\SQLRoleProvider.cs (1)
474
cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
State\sqlstateclientmanager.cs (2)
1307
p = _cmdTempGet.Parameters.Add(new SqlParameter("@lockDate", SqlDbType.
DateTime
));
1349
p = _cmdTempGetExclusive.Parameters.Add(new SqlParameter("@lockDate", SqlDbType.
DateTime
));
UI\WebParts\SqlPersonalizationProvider.cs (8)
109
parameter = parameters.Add("InactiveSinceDate", SqlDbType.
DateTime
);
233
parameter = parameters.Add("InactiveSinceDate", SqlDbType.
DateTime
);
332
parameter = parameters.Add("InactiveSinceDate", SqlDbType.
DateTime
);
412
parameter = parameters.Add("InactiveSinceDate", SqlDbType.
DateTime
);
521
command.Parameters.Add(CreateParameter("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
597
command.Parameters.Add(CreateParameter("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
824
parameter = parameters.Add("InactiveSinceDate", SqlDbType.
DateTime
);
922
command.Parameters.Add(CreateParameter("@CurrentTimeUtc", SqlDbType.
DateTime
, DateTime.UtcNow));
System.Workflow.Runtime (6)
Tracking\SqlTrackingQuery.cs (2)
199
param.SqlDbType = SqlDbType.
DateTime
;
209
param.SqlDbType = SqlDbType.
DateTime
;
Tracking\SqlTrackingWorkflowInstance.cs (4)
769
param = new SqlParameter("@BeginDateTime", SqlDbType.
DateTime
);
773
param = new SqlParameter("@EndDateTime", SqlDbType.
DateTime
);
861
param = new SqlParameter("@BeginDateTime", SqlDbType.
DateTime
);
865
param = new SqlParameter("@EndDateTime", SqlDbType.
DateTime
);