EdmFunctions.AddMilliseconds(DbExpression, DbExpression) 方法

定義

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

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

參數

timeValue
DbExpression

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

addValue
DbExpression

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

傳回

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

例外狀況

timeValueaddValuenull

timeValueaddValue 是無效。

適用於