Sdílet prostřednictvím


EdmFunctions.CreateDateTime Metoda

Definice

Vytvoří objekt DbFunctionExpression , který vyvolá kanonickou funkci CreateDateTime se zadanými argumenty. hodnota second musí mít typ výsledku Edm.Double, zatímco všechny ostatní argumenty musí mít typ výsledku Edm.Int32. Typ výsledku výrazu je Edm.DateTime.

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression CreateDateTime(System.Data.Entity.Core.Common.CommandTrees.DbExpression year, System.Data.Entity.Core.Common.CommandTrees.DbExpression month, System.Data.Entity.Core.Common.CommandTrees.DbExpression day, System.Data.Entity.Core.Common.CommandTrees.DbExpression hour, System.Data.Entity.Core.Common.CommandTrees.DbExpression minute, System.Data.Entity.Core.Common.CommandTrees.DbExpression second);
static member CreateDateTime : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
Public Function CreateDateTime (year As DbExpression, month As DbExpression, day As DbExpression, hour As DbExpression, minute As DbExpression, second As DbExpression) As DbFunctionExpression

Parametry

year
DbExpression

Výraz, který poskytuje hodnotu roku pro novou instanci DateTime.

month
DbExpression

Výraz, který poskytuje hodnotu měsíce pro novou instanci DateTime.

day
DbExpression

Výraz, který poskytuje hodnotu dne pro novou instanci DateTime.

hour
DbExpression

Výraz, který poskytuje hodnotu hodiny pro novou instanci DateTime.

minute
DbExpression

Výraz, který poskytuje hodnotu minuty pro novou instanci DateTime.

second
DbExpression

Výraz, který poskytuje druhou hodnotu pro novou instanci DateTime.

Návraty

Nový DbFunctionExpression, který vrátí nový DateTime na základě zadaných hodnot.

Platí pro