Condividi tramite


EdmFunctions.CreateDateTime Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione "CreateDateTime" 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.DateTime.

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

Parametri

year
DbExpression

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

month
DbExpression

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

day
DbExpression

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

hour
DbExpression

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

minute
DbExpression

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

second
DbExpression

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

Restituisce

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

Eccezioni

year, month, day, hourminute, o second è null.

year, month, day, hourminute, o second non è valido.

Si applica a