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 year per la nuova istanza DateTime.

month
DbExpression

Espressione che fornisce il valore month per la nuova istanza DateTime.

day
DbExpression

Espressione che fornisce il valore day per la nuova istanza DateTime.

hour
DbExpression

Espressione che fornisce il valore hour per la nuova istanza DateTime.

minute
DbExpression

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

second
DbExpression

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

Valori restituiti

Nuovo DbFunctionExpression che restituisce un nuovo valore DateTime in base ai valori specificati.

Eccezioni

year, month, hour, minute, o second è null. day

year, month, hour, minute, o second non è valido. day

Si applica a