EdmFunctions.CreateTime(DbExpression, DbExpression, DbExpression) Método

Definição

Cria um DbFunctionExpression que invoca a função canónica 'CreateTime' com os argumentos especificados. second deve ter um tipo de resultado Edm.Double, enquanto todos os outros argumentos devem ter um tipo de resultado Edm.Int32. O tipo de resultado da expressão é 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

Parâmetros

hour
DbExpression

Uma expressão que fornece o valor da hora para a nova instância DateTime.

minute
DbExpression

Uma expressão que fornece o valor do minuto para a nova instância DateTime.

second
DbExpression

Uma expressão que fornece o segundo valor para a nova instância DateTime.

Devoluções

Uma nova DbFunctionExpression que devolve um novo Time com base nos valores especificados.

Exceções

hour, minute, ou second é null.

hour, minute, ou second é inválido.

Aplica-se a