Sdílet prostřednictvím


EdmFunctions.CreateTime(DbExpression, DbExpression, DbExpression) Metoda

Definice

Vytvoří funkci DbFunctionExpression , která vyvolá kanonickou funkci CreateTime se zadanými argumenty. sekunda 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.Time.

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression CreateTime(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 CreateTime : 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 CreateTime (hour As DbExpression, minute As DbExpression, second As DbExpression) As DbFunctionExpression

Parametry

hour
DbExpression

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

minute
DbExpression

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

second
DbExpression

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

Návraty

Nový DbFunctionExpression, který vrací nový čas na základě zadaných hodnot.

Platí pro