다음을 통해 공유


DbFunctions.AddHours 메서드

정의

오버로드

AddHours(Nullable<DateTime>, Nullable<Int32>)

LINQ to Entities 쿼리의 일부로 사용되는 경우 이 메서드는 정식 AddHours EDM 함수를 호출하여 지정된 시간 수를 날짜/시간에 추가합니다.

AddHours(Nullable<DateTimeOffset>, Nullable<Int32>)

LINQ to Entities 쿼리의 일부로 사용되는 경우 이 메서드는 정식 AddHours EDM 함수를 호출하여 지정된 시간 수를 날짜/시간에 추가합니다.

AddHours(Nullable<TimeSpan>, Nullable<Int32>)

LINQ to Entities 쿼리의 일부로 사용되는 경우 이 메서드는 정식 AddHours EDM 함수를 호출하여 지정된 시간 수를 시간 범위에 추가합니다.

AddHours(Nullable<DateTime>, Nullable<Int32>)

LINQ to Entities 쿼리의 일부로 사용되는 경우 이 메서드는 정식 AddHours EDM 함수를 호출하여 지정된 시간 수를 날짜/시간에 추가합니다.

[System.Data.Entity.DbFunction("Edm", "AddHours")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="addValue")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue")]
public static Nullable<DateTime> AddHours (Nullable<DateTime> timeValue, Nullable<int> addValue);
static member AddHours : Nullable<DateTime> * Nullable<int> -> Nullable<DateTime>
Public Shared Function AddHours (timeValue As Nullable(Of DateTime), addValue As Nullable(Of Integer)) As Nullable(Of DateTime)

매개 변수

timeValue
Nullable<DateTime>

입력 날짜/시간입니다.

addValue
Nullable<Int32>

더할 시간 수입니다.

반환

결과 날짜/시간입니다.

특성

설명

이 함수는 직접 호출할 수 없습니다. 이 함수는 LINQ to Entities 쿼리 내에만 나타날 수 있습니다. 이 함수는 데이터베이스의 해당 함수로 변환됩니다.

적용 대상

AddHours(Nullable<DateTimeOffset>, Nullable<Int32>)

LINQ to Entities 쿼리의 일부로 사용되는 경우 이 메서드는 정식 AddHours EDM 함수를 호출하여 지정된 시간 수를 날짜/시간에 추가합니다.

[System.Data.Entity.DbFunction("Edm", "AddHours")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="addValue")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue")]
public static Nullable<DateTimeOffset> AddHours (Nullable<DateTimeOffset> timeValue, Nullable<int> addValue);
static member AddHours : Nullable<DateTimeOffset> * Nullable<int> -> Nullable<DateTimeOffset>
Public Shared Function AddHours (timeValue As Nullable(Of DateTimeOffset), addValue As Nullable(Of Integer)) As Nullable(Of DateTimeOffset)

매개 변수

timeValue
Nullable<DateTimeOffset>

입력 날짜/시간입니다.

addValue
Nullable<Int32>

더할 시간 수입니다.

반환

결과 날짜/시간입니다.

특성

설명

이 함수는 직접 호출할 수 없습니다. 이 함수는 LINQ to Entities 쿼리 내에만 나타날 수 있습니다. 이 함수는 데이터베이스의 해당 함수로 변환됩니다.

적용 대상

AddHours(Nullable<TimeSpan>, Nullable<Int32>)

LINQ to Entities 쿼리의 일부로 사용되는 경우 이 메서드는 정식 AddHours EDM 함수를 호출하여 지정된 시간 수를 시간 범위에 추가합니다.

[System.Data.Entity.DbFunction("Edm", "AddHours")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="addValue")]
public static Nullable<TimeSpan> AddHours (Nullable<TimeSpan> timeValue, Nullable<int> addValue);
static member AddHours : Nullable<TimeSpan> * Nullable<int> -> Nullable<TimeSpan>
Public Shared Function AddHours (timeValue As Nullable(Of TimeSpan), addValue As Nullable(Of Integer)) As Nullable(Of TimeSpan)

매개 변수

timeValue
Nullable<TimeSpan>

입력 날짜/시간입니다.

addValue
Nullable<Int32>

더할 시간 수입니다.

반환

결과 시간 범위입니다.

특성

설명

이 함수는 직접 호출할 수 없습니다. 이 함수는 LINQ to Entities 쿼리 내에만 나타날 수 있습니다. 이 함수는 데이터베이스의 해당 함수로 변환됩니다.

적용 대상