Прочетете на английски Редактиране

Споделяне чрез


EdmFunctions.CreateTime(DbExpression, DbExpression, DbExpression) Method

Definition

Creates a DbFunctionExpression that invokes the canonical 'CreateTime' function with the specified arguments. second must have a result type of Edm.Double, while all other arguments must have a result type of Edm.Int32. The result type of the expression is Edm.Time.

C#
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);

Parameters

hour
DbExpression

An expression that provides the hour value for the new DateTime instance.

minute
DbExpression

An expression that provides the minute value for the new DateTime instance.

second
DbExpression

An expression that provides the second value for the new DateTime instance.

Returns

A new DbFunctionExpression that returns a new Time based on the specified values.

Exceptions

hour, minute, or second is null.

hour, minute, or second is invalid.

Applies to

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1