EdmFunctions.Hour(DbExpression) 메서드

정의

결과 형식이 DateTime, DateTimeOffset 또는 Time이어야 하는 지정된 인수를 사용하여 정식 'Hour' 함수를 호출하는 DbFunctionExpression을 만듭니다. 이 식의 결과 형식은 Edm.Int32입니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Hour(System::Data::Common::CommandTrees::DbExpression ^ timeValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression Hour (this System.Data.Common.CommandTrees.DbExpression timeValue);
static member Hour : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Hour (timeValue As DbExpression) As DbFunctionExpression

매개 변수

timeValue
DbExpression

시간을 검색해야 하는 값을 지정하는 식입니다.

반환

에서 timeValue정수 시간 값을 반환하는 새 DbFunctionExpression입니다.

예외

timeValuenull입니다.

timeValue이 잘못되었습니다.

적용 대상