共用方式為


EntityFunctions.AddMicroseconds 方法

定義

多載

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

當做LINQ to Entities查詢的一部分使用時,這個方法會叫用標準 AddMicroseconds EDM 函式,以將指定的微秒數新增至日期/時間。

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

當做LINQ to Entities查詢的一部分使用時,這個方法會叫用標準 AddMicroseconds EDM 函式,以將指定的微秒數新增至日期/時間。

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

當做LINQ to Entities查詢的一部分使用時,這個方法會叫用標準 AddMicroseconds EDM 函式,以將指定的微秒數新增至時間範圍。

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

當做LINQ to Entities查詢的一部分使用時,這個方法會叫用標準 AddMicroseconds EDM 函式,以將指定的微秒數新增至日期/時間。

[System.Data.Entity.DbFunction("Edm", "AddMicroseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="addValue")]
public static Nullable<DateTime> AddMicroseconds (Nullable<DateTime> timeValue, Nullable<int> addValue);
static member AddMicroseconds : Nullable<DateTime> * Nullable<int> -> Nullable<DateTime>
Public Shared Function AddMicroseconds (timeValue As Nullable(Of DateTime), addValue As Nullable(Of Integer)) As Nullable(Of DateTime)

參數

timeValue
Nullable<DateTime>

輸入日期/時間。

addValue
Nullable<Int32>

要加入的微秒數。

傳回

產生的日期/時間。

屬性

備註

您無法直接呼叫此函式。 此函式只能出現在LINQ to Entities查詢內。 此函式會轉譯為資料庫中的對應函式。

適用於

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

當做LINQ to Entities查詢的一部分使用時,這個方法會叫用標準 AddMicroseconds EDM 函式,以將指定的微秒數新增至日期/時間。

[System.Data.Entity.DbFunction("Edm", "AddMicroseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="addValue")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue")]
public static Nullable<DateTimeOffset> AddMicroseconds (Nullable<DateTimeOffset> timeValue, Nullable<int> addValue);
static member AddMicroseconds : Nullable<DateTimeOffset> * Nullable<int> -> Nullable<DateTimeOffset>
Public Shared Function AddMicroseconds (timeValue As Nullable(Of DateTimeOffset), addValue As Nullable(Of Integer)) As Nullable(Of DateTimeOffset)

參數

timeValue
Nullable<DateTimeOffset>

輸入日期/時間。

addValue
Nullable<Int32>

要加入的微秒數。

傳回

產生的日期/時間。

屬性

備註

您無法直接呼叫此函式。 此函式只能出現在LINQ to Entities查詢內。 此函式會轉譯為資料庫中的對應函式。

適用於

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

當做LINQ to Entities查詢的一部分使用時,這個方法會叫用標準 AddMicroseconds EDM 函式,以將指定的微秒數新增至時間範圍。

[System.Data.Entity.DbFunction("Edm", "AddMicroseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="addValue")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue")]
public static Nullable<TimeSpan> AddMicroseconds (Nullable<TimeSpan> timeValue, Nullable<int> addValue);
static member AddMicroseconds : Nullable<TimeSpan> * Nullable<int> -> Nullable<TimeSpan>
Public Shared Function AddMicroseconds (timeValue As Nullable(Of TimeSpan), addValue As Nullable(Of Integer)) As Nullable(Of TimeSpan)

參數

timeValue
Nullable<TimeSpan>

輸入日期/時間。

addValue
Nullable<Int32>

要加入的微秒數。

傳回

產生的時間範圍。

屬性

備註

您無法直接呼叫此函式。 此函式只能出現在LINQ to Entities查詢內。 此函式會轉譯為資料庫中的對應函式。

適用於