EdmFunctions.AddMilliseconds(DbExpression, DbExpression) 方法

定義

建立會使用指定引數叫用標準 'AddMilliseconds' 函式的 DbFunctionExpression,其中的引數必須具有 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 無效。

適用於