IModel.GetEntityTypes Method

Definition

Gets all entity types defined in the model.

public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IEntityType> GetEntityTypes ();
abstract member GetEntityTypes : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
Public Function GetEntityTypes () As IEnumerable(Of IEntityType)

Returns

All entity types defined in the model.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to