Condividi tramite


EdmFunctions.CreateTime(DbExpression, DbExpression, DbExpression) Metodo

Definizione

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

public:
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ CreateTime(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 CreateTime (System.Data.Common.CommandTrees.DbExpression hour, System.Data.Common.CommandTrees.DbExpression minute, System.Data.Common.CommandTrees.DbExpression second);
static member CreateTime : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
Public Function CreateTime (hour As DbExpression, minute As DbExpression, second As DbExpression) As DbFunctionExpression

Parametri

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 Time basato sui valori specificati.

Eccezioni

hour, minute o second è null.

hour, minuteo second non è valido.

Si applica a