EdmFunctions.CreateDateTimeOffset Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen CreateDateTimeOffset med de angivna argumenten. second måste ha resultattypen Edm.Double, medan alla andra argument måste ha resultattypen Edm.Int32. Resultattypen för uttrycket är Edm.DateTimeOffset.

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

Parametrar

year
DbExpression

Ett uttryck som ger årsvärdet för den nya DateTimeOffset-instansen.

month
DbExpression

Ett uttryck som ger månadsvärdet för den nya DateTimeOffset-instansen.

day
DbExpression

Ett uttryck som ger dagsvärdet för den nya DateTimeOffset-instansen.

hour
DbExpression

Ett uttryck som ger timvärdet för den nya DateTimeOffset-instansen.

minute
DbExpression

Ett uttryck som ger minutvärdet för den nya DateTimeOffset-instansen.

second
DbExpression

Ett uttryck som ger det andra värdet för den nya DateTimeOffset-instansen.

timeZoneOffset
DbExpression

Ett uttryck som ger antalet minuter i tidszonens förskjutningsvärde för den nya DateTimeOffset-instansen.

Returer

En ny DbFunctionExpression som returnerar en ny DateTimeOffset baserat på de angivna värdena.

Undantag

year, month, day, hour, minute, second, eller timeZoneOffset är null.

year, month, day, hour, minute, , secondeller timeZoneOffset är ogiltig.

Gäller för