Sdílet prostřednictvím


EdmFunctions.Second(DbExpression) Metoda

Definice

Vytvoří funkci DbFunctionExpression , která vyvolá kanonickou funkci "Second" se zadaným argumentem, který musí mít typ výsledku DateTime, DateTimeOffset nebo Time. Typ výsledku výrazu je Edm.Int32.

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

Parametry

timeValue
DbExpression

Výraz, který určuje hodnotu, ze které se má načíst sekunda.

Návraty

Nový DbFunctionExpression, který vrací celočíselnou druhou hodnotu z timeValue.

Platí pro