語言

EdmFunctions.AddSeconds(DbExpression, DbExpression) 方法

定義

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

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression AddSeconds(this System.Data.Entity.Core.Common.CommandTrees.DbExpression timeValue, System.Data.Entity.Core.Common.CommandTrees.DbExpression addValue);
static member AddSeconds : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function AddSeconds (timeValue As DbExpression, addValue As DbExpression) As DbFunctionExpression

參數

timeValue
DbExpression

一個表示式,指定應加值的值。

addValue
DbExpression

一個表示式,指定要加到時間值的秒數。

傳回

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

適用於