Aracılığıyla paylaş


ModelExtensions.FindEntityType Yöntem

Tanım

Aşırı Yüklemeler

FindEntityType(IModel, Type)
Geçersiz.

Verilen varlık sınıfını eşleyen varlığı alır. Verilen CLR türüne sahip bir varlık türü bulunamazsa veya verilen CLR türü paylaşılan tür varlık türü tarafından kullanılıyorsa veya varlık türünün tanımlayıcı bir gezintisi varsa döndürür null .

FindEntityType(IModel, Type, String, IEntityType)

Gezinti adını ve tanımlama varlık türünü tanımlayarak verilen tür için varlık türünü alır. Eşleşen varlık türü bulunamazsa döndürür null .

FindEntityType(IModel, Type)

Dikkat

Use IReadOnlyEntityType.FindEntityType

Verilen varlık sınıfını eşleyen varlığı alır. Verilen CLR türüne sahip bir varlık türü bulunamazsa veya verilen CLR türü paylaşılan tür varlık türü tarafından kullanılıyorsa veya varlık türünün tanımlayıcı bir gezintisi varsa döndürür 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

Parametreler

model
IModel

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

type
Type

İlgili varlık türünü bulmak için tür.

Döndürülenler

Varlık türü veya null yoksa.

Öznitelikler

Şunlara uygulanır

FindEntityType(IModel, Type, String, IEntityType)

Gezinti adını ve tanımlama varlık türünü tanımlayarak verilen tür için varlık türünü alır. Eşleşen varlık türü bulunamazsa döndürür 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

Parametreler

model
IModel

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

type
Type

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

definingNavigationName
String

Bulunacak varlık türünün tanımlama gezintisi.

definingEntityType
IEntityType

Bulunacak varlık türünün tanımlayıcı varlık türü.

Döndürülenler

Varlık türü veya null bulunamazsa.

Öznitelikler

Şunlara uygulanır