다음을 통해 공유


ModelExtensions.FindEntityType 메서드

정의

오버로드

FindEntityType(IModel, Type)
사용되지 않음.

지정된 엔터티 클래스를 매핑하는 엔터티를 가져옵니다. 지정된 CLR 형식이 있는 엔터티 형식이 없거나 공유 형식 엔터티 형식에서 지정된 CLR 형식을 사용 중이거나 엔터티 형식에 정의 탐색이 있는 경우 를 반환 null 합니다.

FindEntityType(IModel, Type, String, IEntityType)

탐색 이름 및 정의 엔터티 형식을 정의하는 지정된 형식의 엔터티 형식을 가져옵니다. 일치하는 엔터티 형식이 없으면 를 반환 null 합니다.

FindEntityType(IModel, Type)

주의

Use IReadOnlyEntityType.FindEntityType

지정된 엔터티 클래스를 매핑하는 엔터티를 가져옵니다. 지정된 CLR 형식이 있는 엔터티 형식이 없거나 공유 형식 엔터티 형식에서 지정된 CLR 형식을 사용 중이거나 엔터티 형식에 정의 탐색이 있는 경우 를 반환 null 합니다.

public static Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IReadOnlyEntityType.FindEntityType")]
public static Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Diagnostics.DebuggerStepThrough>]
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use IReadOnlyEntityType.FindEntityType")>]
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
<Extension()>
Public Function FindEntityType (model As IModel, type As Type) As IEntityType
<Extension()>
Public Function FindEntityType (model As IModel, type As Type) As IReadOnlyEntityType

매개 변수

model
IModel

엔터티 형식을 찾을 모델입니다.

type
Type

해당 엔터티 형식을 찾을 형식입니다.

반환

엔터티 형식이거나 null , 없는 경우 입니다.

특성

적용 대상

FindEntityType(IModel, Type, String, IEntityType)

탐색 이름 및 정의 엔터티 형식을 정의하는 지정된 형식의 엔터티 형식을 가져옵니다. 일치하는 엔터티 형식이 없으면 를 반환 null 합니다.

public static Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IEntityType definingEntityType);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IEntityType definingEntityType);
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type * string * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Diagnostics.DebuggerStepThrough>]
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type * string * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
<Extension()>
Public Function FindEntityType (model As IModel, type As Type, definingNavigationName As String, definingEntityType As IEntityType) As IEntityType

매개 변수

model
IModel

엔터티 형식을 찾을 모델입니다.

type
Type

찾을 엔터티 형식의 형식입니다.

definingNavigationName
String

찾을 엔터티 형식의 정의 탐색입니다.

definingEntityType
IEntityType

찾을 엔터티 형식의 정의 엔터티 형식입니다.

반환

엔터티 형식이거나 null , 없는 경우 입니다.

특성

적용 대상