EdmFunctions.CreateTime(DbExpression, DbExpression, DbExpression) 方法

定义

创建一个 DbFunctionExpression 使用指定参数调用规范“CreateTime”函数的函数。 second 必须具有 Edm.Double 的结果类型,而所有其他参数必须具有 Edm.Int32 的结果类型。 表达式的结果类型为 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

参数

hour
DbExpression

一个表达式,它为新的 DateTime 实例提供小时值。

minute
DbExpression

一个表达式,它为新的 DateTime 实例提供分钟值。

second
DbExpression

为新的 DateTime 实例提供第二个值的表达式。

返回

基于指定值返回新时间的新 DbFunctionExpression。

例外

hourminutesecondnull

hourminutesecond 无效。

适用于