Dil

ShapedQueryCompilingExpressionVisitor.SingleAsync<TSource> Yöntem

Tanım

Bu, Entity Framework Core altyapısını destekleyen ve genel API'ler ile aynı uyumluluk standartlarına tabi olmayan bir iç API'dir. Herhangi bir sürümde bildirimde bulunmaksızın değiştirilebilir veya kaldırılabilir. Bunu yalnızca kodunuzda son derece dikkatli bir şekilde kullanmanız ve bunu yapmanın yeni bir Entity Framework Core sürümüne güncelleştirme sırasında uygulama hatalarına neden olabileceğini bilmeniz gerekir.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public static System.Threading.Tasks.Task<TSource> SingleAsync<TSource>(System.Collections.Generic.IAsyncEnumerable<TSource> asyncEnumerable, System.Threading.CancellationToken cancellationToken = default);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
static member SingleAsync : System.Collections.Generic.IAsyncEnumerable<'Source> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Source>
Public Shared Function SingleAsync(Of TSource) (asyncEnumerable As IAsyncEnumerable(Of TSource), Optional cancellationToken As CancellationToken = Nothing) As Task(Of TSource)

Tür Parametreleri

TSource

Parametreler

asyncEnumerable
IAsyncEnumerable<TSource>
cancellationToken
CancellationToken

Döndürülenler

Task<TSource>
Özellikler

Şunlara uygulanır