EdmFunctions.CreateTime(DbExpression, DbExpression, DbExpression) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个 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。
例外
hour, minute或 second 为 null。
hour、 minute或 second 无效。