Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DbSet<TEntity>.AsAsyncEnumerable Method

Definition

Namespace:
Microsoft.EntityFrameworkCore
Assembly:
Microsoft.EntityFrameworkCore.dll
Package:
Microsoft.EntityFrameworkCore v10.0.0
Package:
Microsoft.EntityFrameworkCore v3.1.0
Package:
Microsoft.EntityFrameworkCore v5.0.0
Package:
Microsoft.EntityFrameworkCore v6.0.0
Package:
Microsoft.EntityFrameworkCore v7.0.0
Package:
Microsoft.EntityFrameworkCore v8.0.0
Package:
Microsoft.EntityFrameworkCore v9.0.0
Source:
DbSet.cs
Source:
DbSet.cs
Source:
DbSet.cs
Source:
DbSet.cs
Source:
DbSet.cs
Source:
DbSet.cs
Source:
DbSet.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Returns this object typed as IAsyncEnumerable<T>.

public virtual System.Collections.Generic.IAsyncEnumerable<TEntity> AsAsyncEnumerable();
abstract member AsAsyncEnumerable : unit -> System.Collections.Generic.IAsyncEnumerable<'Entity (requires 'Entity : null)>
override this.AsAsyncEnumerable : unit -> System.Collections.Generic.IAsyncEnumerable<'Entity (requires 'Entity : null)>
Public Overridable Function AsAsyncEnumerable () As IAsyncEnumerable(Of TEntity)

Returns

IAsyncEnumerable<TEntity>

This object.

Remarks

See Querying data with EF Core for more information and examples.

Applies to


Feedback

Was this page helpful?