언어

EntityFrameworkQueryableExtensions.AsAsyncEnumerable<TSource> 메서드

정의

IAsyncEnumerable<T> 비동기적으로 열거할 수 있는 값을 반환합니다.

public static System.Collections.Generic.IAsyncEnumerable<TSource> AsAsyncEnumerable<TSource>(this System.Linq.IQueryable<TSource> source);
static member AsAsyncEnumerable : System.Linq.IQueryable<'Source> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function AsAsyncEnumerable(Of TSource) (source As IQueryable(Of TSource)) As IAsyncEnumerable(Of TSource)

형식 매개 변수

TSource

의 요소 형식입니다 source.

매개 변수

source
IQueryable<TSource>

IQueryable<T> 열거할 항목입니다.

반품

IAsyncEnumerable<TSource>

쿼리 결과입니다.

예외

source은 null입니다.

source 가 아닙니다 IAsyncEnumerable<T>.

설명

동일한 컨텍스트 인스턴스에서 여러 활성 작업은 지원되지 않습니다. 이 컨텍스트에서 다른 메서드를 호출하기 전에 비동기 작업이 완료되었는지 확인하는 데 사용합니다 await . 자세한 내용 및 예제 는 DbContext 스레딩 문제 방지 를 참조하세요.

자세한 내용 및 예제는 EF Core를 사용하여 데이터 쿼리를 참조하세요.

적용 대상