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>가 아닌 경우

설명

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

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

적용 대상