ModelExtensions.GetEntityTypes Method

Definition

Overloads

GetEntityTypes(IModel, String)
Obsolete.

Gets the entity types matching the given name.

GetEntityTypes(IModel, Type)
Obsolete.

Gets the entity types matching the given type.

GetEntityTypes(IModel, String)

Caution

Use FindEntityTypes(Type) or FindEntityType(string)

Gets the entity types matching the given name.

public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use FindEntityTypes(Type) or FindEntityType(string)")]
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType>
[<System.Diagnostics.DebuggerStepThrough>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType>
[<System.Diagnostics.DebuggerStepThrough>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use FindEntityTypes(Type) or FindEntityType(string)")>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType>
<Extension()>
Public Function GetEntityTypes (model As IModel, name As String) As IReadOnlyCollection(Of EntityType)
<Extension()>
Public Function GetEntityTypes (model As IModel, name As String) As IReadOnlyCollection(Of IEntityType)
<Extension()>
Public Function GetEntityTypes (model As IModel, name As String) As IReadOnlyCollection(Of IReadOnlyEntityType)

Parameters

model
IModel

The model to find the entity type in.

name
String

The name of the entity type to find.

Returns

IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType>

The entity types found.

Attributes

Applies to

GetEntityTypes(IModel, Type)

Caution

Use IReadOnlyEntityType.FindEntityTypes

Gets the entity types matching the given type.

public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IReadOnlyEntityType.FindEntityTypes")]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType>
[<System.Diagnostics.DebuggerStepThrough>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType>
[<System.Diagnostics.DebuggerStepThrough>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use IReadOnlyEntityType.FindEntityTypes")>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType>
<Extension()>
Public Function GetEntityTypes (model As IModel, type As Type) As IReadOnlyCollection(Of EntityType)
<Extension()>
Public Function GetEntityTypes (model As IModel, type As Type) As IReadOnlyCollection(Of IEntityType)
<Extension()>
Public Function GetEntityTypes (model As IModel, type As Type) As IEnumerable(Of IReadOnlyEntityType)

Parameters

model
IModel

The model to find the entity type in.

type
Type

The type of the entity type to find.

Returns

IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType>

The entity types found.

Attributes

Applies to