다음을 통해 공유


DbRawSqlQuery<TElement>.LongCountAsync 메서드

정의

오버로드

LongCountAsync(CancellationToken)

쿼리의 총 요소 수를 나타내는 를 비동기적으로 반환 Int64 합니다.

LongCountAsync(Func<TElement,Boolean>, CancellationToken)

조건을 충족하는 쿼리의 요소 수를 나타내는 를 비동기적으로 반환 Int64 합니다.

LongCountAsync()

쿼리의 총 요소 수를 나타내는 를 비동기적으로 반환 Int64 합니다.

LongCountAsync(Func<TElement,Boolean>)

조건을 충족하는 쿼리의 요소 수를 나타내는 를 비동기적으로 반환 Int64 합니다.

LongCountAsync(CancellationToken)

쿼리의 총 요소 수를 나타내는 를 비동기적으로 반환 Int64 합니다.

public System.Threading.Tasks.Task<long> LongCountAsync(System.Threading.CancellationToken cancellationToken);
member this.LongCountAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<int64>

매개 변수

cancellationToken
CancellationToken

CancellationToken 작업이 완료 될 때까지 기다리는 동안 관찰할 입니다.

반환

비동기 작업(operation)을 나타내는 작업(task)입니다. 작업 결과에는 쿼리 결과의 요소 수가 포함됩니다.

예외

쿼리 결과의 요소 수가 보다 MaxValue 큽다.

설명

동일한 컨텍스트 instance 여러 활성 작업은 지원되지 않습니다. 'await'를 사용하여 이 컨텍스트에서 다른 메서드를 호출하기 전에 비동기 작업이 완료되었는지 확인합니다.

적용 대상

LongCountAsync(Func<TElement,Boolean>, CancellationToken)

조건을 충족하는 쿼리의 요소 수를 나타내는 를 비동기적으로 반환 Int64 합니다.

public System.Threading.Tasks.Task<long> LongCountAsync(Func<TElement,bool> predicate, System.Threading.CancellationToken cancellationToken);
member this.LongCountAsync : Func<'Element, bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int64>

매개 변수

predicate
Func<TElement,Boolean>

각 요소를 조건에 대해 테스트하는 함수입니다.

cancellationToken
CancellationToken

CancellationToken 작업이 완료 될 때까지 기다리는 동안 관찰할 입니다.

반환

비동기 작업(operation)을 나타내는 작업(task)입니다. 작업 결과에는 조건자 함수의 조건을 충족하는 쿼리 결과의 요소 수가 포함됩니다.

예외

조건자 함수의 조건을 충족하는 쿼리 결과의 요소 수가 보다 MaxValue 큽다.

설명

동일한 컨텍스트 instance 여러 활성 작업은 지원되지 않습니다. 'await'를 사용하여 이 컨텍스트에서 다른 메서드를 호출하기 전에 비동기 작업이 완료되었는지 확인합니다.

적용 대상

LongCountAsync()

쿼리의 총 요소 수를 나타내는 를 비동기적으로 반환 Int64 합니다.

public System.Threading.Tasks.Task<long> LongCountAsync();
member this.LongCountAsync : unit -> System.Threading.Tasks.Task<int64>
Public Function LongCountAsync () As Task(Of Long)

반환

비동기 작업(operation)을 나타내는 작업(task)입니다. 작업 결과에는 쿼리 결과의 요소 수가 포함됩니다.

예외

쿼리 결과의 요소 수가 보다 MaxValue 큽다.

설명

동일한 컨텍스트 instance 여러 활성 작업은 지원되지 않습니다. 'await'를 사용하여 이 컨텍스트에서 다른 메서드를 호출하기 전에 비동기 작업이 완료되었는지 확인합니다.

적용 대상

LongCountAsync(Func<TElement,Boolean>)

조건을 충족하는 쿼리의 요소 수를 나타내는 를 비동기적으로 반환 Int64 합니다.

public System.Threading.Tasks.Task<long> LongCountAsync(Func<TElement,bool> predicate);
member this.LongCountAsync : Func<'Element, bool> -> System.Threading.Tasks.Task<int64>
Public Function LongCountAsync (predicate As Func(Of TElement, Boolean)) As Task(Of Long)

매개 변수

predicate
Func<TElement,Boolean>

각 요소를 조건에 대해 테스트하는 함수입니다.

반환

비동기 작업(operation)을 나타내는 작업(task)입니다. 작업 결과에는 조건자 함수의 조건을 충족하는 쿼리 결과의 요소 수가 포함됩니다.

예외

조건자 함수의 조건을 충족하는 쿼리 결과의 요소 수가 보다 MaxValue 큽다.

설명

동일한 컨텍스트 instance 여러 활성 작업은 지원되지 않습니다. 'await'를 사용하여 이 컨텍스트에서 다른 메서드를 호출하기 전에 비동기 작업이 완료되었는지 확인합니다.

적용 대상