ModelExtensions.FindEntityType Yöntem

Tanım

Aşırı Yüklemeler

FindEntityType(IModel, Type)
Kullanımdan kalktı.

Verilen varlık sınıfını eşleen varlığı alır. Verilen CLR türüne sahip varlık türü bulunamasa veya paylaşılan tür varlık türü tarafından belirli BIR CLR türü kullanılıyorsa veya varlık türünün tanımlayan bir gezintisi null varsa döndürür.

FindEntityType(IModel, Type, String, IEntityType)

Verilen tür için varlık türünü alır, gezinti adını ve tanımlayan varlık türünü tanımlar. Eşleşen null varlık türü bulunamasa döndürür.

FindEntityType(IModel, Type)

Dikkat

Use IReadOnlyEntityType.FindEntityType

Verilen varlık sınıfını eşleen varlığı alır. Verilen CLR türüne sahip varlık türü bulunamasa veya paylaşılan tür varlık türü tarafından belirli BIR CLR türü kullanılıyorsa veya varlık türünün tanımlayan bir gezintisi null varsa döndürür.

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

Parametreler

model
IModel

Varlık türünü bulmak için model.

type
Type

karşılık gelen varlık türünü bulmak için tür.

Döndürülenler

IEntityType
IReadOnlyEntityType

Varlık türü veya null bulunamıyorsa.

Öznitelikler

Şunlara uygulanır

FindEntityType(IModel, Type, String, IEntityType)

Verilen tür için varlık türünü alır, gezinti adını ve tanımlayan varlık türünü tanımlar. Eşleşen null varlık türü bulunamasa döndürür.

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

Parametreler

model
IModel

Varlık türünü bulmak için model.

type
Type

Bulunan varlık türünün türü.

definingNavigationName
String

Bulmak için varlık türünün tanımlayan gezintisi.

definingEntityType
IEntityType

Bulunan varlık türünün tanımlayan varlık türü.

Döndürülenler

IEntityType

Varlık türü veya null bulunamıyorsa.

Öznitelikler

Şunlara uygulanır