Export (0) Print
Expand All

EdmFunctions.CreateTime Method

.NET Framework 4.5

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.

Namespace:  System.Data.Common.CommandTrees.ExpressionBuilder
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public static DbFunctionExpression CreateTime(
	DbExpression hour,
	DbExpression minute,
	DbExpression second
)

Parameters

hour
Type: System.Data.Common.CommandTrees.DbExpression

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

minute
Type: System.Data.Common.CommandTrees.DbExpression

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

second
Type: System.Data.Common.CommandTrees.DbExpression

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

Return Value

Type: System.Data.Common.CommandTrees.DbFunctionExpression
A new DbFunctionExpression that returns a new Time based on the specified values.

ExceptionCondition
ArgumentNullException

hourminutesecond

ArgumentException

hourminutesecond

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft