EntityFunctions.AddMilliseconds 方法

定义

调用 AddMilliseconds 规范函数。 有关 AddMilliseconds 规范函数的信息,请参阅日期和时间规范函数

重载

AddMilliseconds(Nullable<DateTime>, Nullable<Int32>)

调用 AddMilliseconds 规范函数。 有关 AddMilliseconds 规范函数的信息,请参阅日期和时间规范函数

AddMilliseconds(Nullable<DateTimeOffset>, Nullable<Int32>)

调用 AddMilliseconds 规范函数。 有关 AddMilliseconds 规范函数的信息,请参阅日期和时间规范函数

AddMilliseconds(Nullable<TimeSpan>, Nullable<Int32>)

调用 AddMilliseconds 规范函数。 有关 AddMilliseconds 规范函数的信息,请参阅日期和时间规范函数

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。

此函数将转换为数据库中的相应函数。

AddMilliseconds(Nullable<DateTime>, Nullable<Int32>)

调用 AddMilliseconds 规范函数。 有关 AddMilliseconds 规范函数的信息,请参阅日期和时间规范函数

public:
 static Nullable<DateTime> AddMilliseconds(Nullable<DateTime> timeValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddMilliseconds")]
public static DateTime? AddMilliseconds (DateTime? timeValue, int? addValue);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "AddMilliseconds")>]
static member AddMilliseconds : Nullable<DateTime> * Nullable<int> -> Nullable<DateTime>
Public Shared Function AddMilliseconds (timeValue As Nullable(Of DateTime), addValue As Nullable(Of Integer)) As Nullable(Of DateTime)

参数

timeValue
Nullable<DateTime>

有效日期。

addValue
Nullable<Int32>

要加到 timeValue 中的毫秒数。

返回

timeValue 增加 addValue

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。

此函数将转换为数据库中的相应函数。

适用于

AddMilliseconds(Nullable<DateTimeOffset>, Nullable<Int32>)

调用 AddMilliseconds 规范函数。 有关 AddMilliseconds 规范函数的信息,请参阅日期和时间规范函数

public:
 static Nullable<DateTimeOffset> AddMilliseconds(Nullable<DateTimeOffset> timeValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddMilliseconds")]
public static DateTimeOffset? AddMilliseconds (DateTimeOffset? timeValue, int? addValue);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "AddMilliseconds")>]
static member AddMilliseconds : Nullable<DateTimeOffset> * Nullable<int> -> Nullable<DateTimeOffset>
Public Shared Function AddMilliseconds (timeValue As Nullable(Of DateTimeOffset), addValue As Nullable(Of Integer)) As Nullable(Of DateTimeOffset)

参数

timeValue
Nullable<DateTimeOffset>

一个有效的日期时间偏移。

addValue
Nullable<Int32>

要加到 timeValue 中的毫秒数。

返回

timeValue 增加 addValue

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。

此函数将转换为数据库中的相应函数。

适用于

AddMilliseconds(Nullable<TimeSpan>, Nullable<Int32>)

调用 AddMilliseconds 规范函数。 有关 AddMilliseconds 规范函数的信息,请参阅日期和时间规范函数

public:
 static Nullable<TimeSpan> AddMilliseconds(Nullable<TimeSpan> timeValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddMilliseconds")]
public static TimeSpan? AddMilliseconds (TimeSpan? timeValue, int? addValue);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "AddMilliseconds")>]
static member AddMilliseconds : Nullable<TimeSpan> * Nullable<int> -> Nullable<TimeSpan>
Public Shared Function AddMilliseconds (timeValue As Nullable(Of TimeSpan), addValue As Nullable(Of Integer)) As Nullable(Of TimeSpan)

参数

timeValue
Nullable<TimeSpan>

一个有效的时间跨度。

addValue
Nullable<Int32>

要加到 timeValue 中的毫秒数。

返回

timeValue 增加 addValue

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。

此函数将转换为数据库中的相应函数。

适用于