Udostępnij za pośrednictwem


ModelExtensions.HasEntityTypeWithDefiningNavigation Metoda

Definicja

Przeciążenia

HasEntityTypeWithDefiningNavigation(IModel, String)
Przestarzałe.

Pobiera wartość wskazującą, czy model zawiera odpowiedni typ jednostki z zdefiniowaną nawigacją.

HasEntityTypeWithDefiningNavigation(IModel, Type)
Przestarzałe.

Pobiera wartość wskazującą, czy model zawiera odpowiedni typ jednostki z zdefiniowaną nawigacją.

HasEntityTypeWithDefiningNavigation(IModel, String)

Przestroga

Use FindEntityType(string)?.HasSharedClrType

Pobiera wartość wskazującą, czy model zawiera odpowiedni typ jednostki z zdefiniowaną nawigacją.

public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use FindEntityType(string)?.HasSharedClrType")]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
[<System.Diagnostics.DebuggerStepThrough>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use FindEntityType(string)?.HasSharedClrType")>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
<Extension()>
Public Function HasEntityTypeWithDefiningNavigation (model As IModel, name As String) As Boolean

Parametry

model
IModel

Model do znalezienia typu jednostki.

name
String

Nazwa używana do znajdowania typu jednostki z zdefiniowaną nawigacją.

Zwraca

true jeśli model zawiera odpowiedni typ jednostki z zdefiniowaną nawigacją.

Atrybuty

Dotyczy

HasEntityTypeWithDefiningNavigation(IModel, Type)

Przestroga

Use IsShared(Type)

Pobiera wartość wskazującą, czy model zawiera odpowiedni typ jednostki z zdefiniowaną nawigacją.

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

Parametry

model
IModel

Model do znalezienia typu jednostki.

type
Type

Typ używany do znajdowania jednostki typu definiującego nawigację.

Zwraca

true jeśli model zawiera odpowiedni typ jednostki z zdefiniowaną nawigacją.

Atrybuty

Dotyczy