共用方式為


EntityFunctions.AddMilliseconds 方法

定義

啟動典範 AddMilliseconds 功能。 關於典範 AddMilliseconds 函數的資訊,請參見 典範函數的日期與時間

多載

名稱 Description
AddMilliseconds(Nullable<DateTime>, Nullable<Int32>)

啟動典範 AddMilliseconds 功能。 關於典範 AddMilliseconds 函數的資訊,請參見 典範函數的日期與時間

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

啟動典範 AddMilliseconds 功能。 關於典範 AddMilliseconds 函數的資訊,請參見 典範函數的日期與時間

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

啟動典範 AddMilliseconds 功能。 關於典範 AddMilliseconds 函數的資訊,請參見 典範函數的日期與時間

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 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 對 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 對 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 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。

適用於