EntityFunctions.AddMicroseconds 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| AddMicroseconds(Nullable<DateTime>, Nullable<Int32>) |
當作為 LINQ 對 Entities 查詢的一部分時,此方法會調用典型的 AddMicroseconds EDM 函數,將指定微秒數加到日期/時間上。 |
| AddMicroseconds(Nullable<DateTimeOffset>, Nullable<Int32>) |
當作為 LINQ 對 Entities 查詢的一部分時,此方法會調用典型的 AddMicroseconds EDM 函數,將指定微秒數加到日期/時間上。 |
| AddMicroseconds(Nullable<TimeSpan>, Nullable<Int32>) |
當作為 LINQ 對 Entities 查詢的一部分時,此方法會調用典型的 AddMicroseconds EDM 函數,將指定微秒數加入時間範圍。 |
AddMicroseconds(Nullable<DateTime>, Nullable<Int32>)
當作為 LINQ 對 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)
參數
傳回
一個結果的日期/時間。
- 屬性
備註
你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。 這個函式會被轉換成資料庫中的對應函式。
適用於
AddMicroseconds(Nullable<DateTimeOffset>, Nullable<Int32>)
當作為 LINQ 對 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>
輸入日期/時間。
傳回
一個結果的日期/時間。
- 屬性
備註
你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。 這個函式會被轉換成資料庫中的對應函式。
適用於
AddMicroseconds(Nullable<TimeSpan>, Nullable<Int32>)
當作為 LINQ 對 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)
參數
傳回
由此產生的時間跨度。
- 屬性
備註
你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。 這個函式會被轉換成資料庫中的對應函式。