Sdílet prostřednictvím


EdmFunctions.CreateDateTimeOffset Metoda

Definice

Vytvoří , DbFunctionExpression který vyvolá kanonický 'CreateDateTimeOffset' funkce 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.DateTimeOffset.

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression CreateDateTimeOffset(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, System.Data.Entity.Core.Common.CommandTrees.DbExpression timeZoneOffset);
static member CreateDateTimeOffset : 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.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
Public Function CreateDateTimeOffset (year As DbExpression, month As DbExpression, day As DbExpression, hour As DbExpression, minute As DbExpression, second As DbExpression, timeZoneOffset As DbExpression) As DbFunctionExpression

Parametry

year
DbExpression

Výraz, který poskytuje hodnotu roku pro novou Instanci DateTimeOffset.

month
DbExpression

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

day
DbExpression

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

hour
DbExpression

Výraz, který poskytuje hodnotu hodiny pro novou Instanci DateTimeOffset.

minute
DbExpression

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

second
DbExpression

Výraz, který poskytuje druhou hodnotu pro novou Instanci DateTimeOffset.

timeZoneOffset
DbExpression

Výraz, který poskytuje počet minut v hodnotě posunu časového pásma pro novou instanci DateTimeOffset.

Návraty

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

Platí pro