Condividi tramite


EdmFunctions.CreateDateTimeOffset Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione "CreateDateTimeOffset" canonica con gli argomenti specificati. second deve avere un tipo di risultato edm.Double, mentre tutti gli altri argomenti devono avere un tipo di risultato Edm.Int32. Il tipo di risultato dell'espressione è 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

Parametri

year
DbExpression

Espressione che fornisce il valore dell'anno per la nuova istanza di DateTimeOffset.

month
DbExpression

Espressione che fornisce il valore del mese per la nuova istanza di DateTimeOffset.

day
DbExpression

Espressione che fornisce il valore del giorno per la nuova istanza di DateTimeOffset.

hour
DbExpression

Espressione che fornisce il valore dell'ora per la nuova istanza di DateTimeOffset.

minute
DbExpression

Espressione che fornisce il valore del minuto per la nuova istanza di DateTimeOffset.

second
DbExpression

Espressione che fornisce il valore del secondo per la nuova istanza di DateTimeOffset.

timeZoneOffset
DbExpression

Espressione che fornisce il valore relativo al numero di minuti di differenza di fuso orario per la nuova istanza di DateTimeOffset.

Restituisce

Nuovo DbFunctionExpression che restituisce un nuovo DateTimeOffset basato sui valori specificati.

Eccezioni

yearminutehourday, month, second, o timeZoneOffset è .null

yearminuteseconddayhour, montho timeZoneOffset non è valido.

Si applica a