DbSet<TEntity>.IEnumerable.GetEnumerator Method

Definition

Returns an IEnumerator which when enumerated will execute a query against the database to load all entities from the database.

System.Collections.IEnumerator IEnumerable.GetEnumerator ();
abstract member System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
override this.System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

Returns

The query results.

Implements

Remarks

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

Applies to