Sdílet prostřednictvím


EdmFunctions.Month(DbExpression) Metoda

Definice

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

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

Parametry

dateValue
DbExpression

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

Návraty

Nový DbFunctionExpression, který vrátí celočíselnou hodnotu měsíce z dateValue.

Platí pro