EdmFunctions.AddMicroseconds(DbExpression, DbExpression) 方法

定義

建立 DbFunctionExpression 一個,呼叫典型的「AddMicroseconds」函式,並以指定參數,參數必須有 DateTime、DateTimeOffset 或 Time,以及整數結果類型。 該表達式的結果型態與 的 timeValue結果型別相同。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ AddMicroseconds(System::Data::Common::CommandTrees::DbExpression ^ timeValue, System::Data::Common::CommandTrees::DbExpression ^ addValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression AddMicroseconds(this System.Data.Common.CommandTrees.DbExpression timeValue, System.Data.Common.CommandTrees.DbExpression addValue);
static member AddMicroseconds : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function AddMicroseconds (timeValue As DbExpression, addValue As DbExpression) As DbFunctionExpression

參數

timeValue
DbExpression

一個表示式,指定應該加到哪 addValue 個值上。

addValue
DbExpression

一個表示式,指定要加到 timeValue的微秒數。

傳回

一個新的 DbFunctionExpression,將 所 addValue 指定的微秒數加到 由 timeValue所指定的值上。

例外狀況

timeValueaddValuenull

timeValueaddValue 是無效。

適用於