EntityTypeExtensions.FindForeignKeys Metoda

Definicja

Przeciążenia

FindForeignKeys(IEntityType, IProperty)

Pobiera klucze obce zdefiniowane dla danej właściwości. Zwracane są tylko klucze obce zdefiniowane dokładnie dla określonej właściwości. Złożone klucze obce, które zawierają określoną właściwość, nie są zwracane.

FindForeignKeys(IEntityType, IReadOnlyList<IProperty>)

Pobiera klucze obce zdefiniowane we podanych właściwościach. Zwracane są tylko klucze obce zdefiniowane dokładnie w określonym zestawie właściwości.

FindForeignKeys(IEntityType, IProperty)

Pobiera klucze obce zdefiniowane dla danej właściwości. Zwracane są tylko klucze obce zdefiniowane dokładnie dla określonej właściwości. Złożone klucze obce, które zawierają określoną właściwość, nie są zwracane.

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> FindForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
<Extension()>
Public Function FindForeignKeys (entityType As IEntityType, property As IProperty) As IEnumerable(Of IForeignKey)

Parametry

entityType
IEntityType

Typ jednostki.

property
IProperty

Właściwość do znalezienia kluczy obcych.

Zwraca

Klucze obce.

Dotyczy

FindForeignKeys(IEntityType, IReadOnlyList<IProperty>)

Pobiera klucze obce zdefiniowane we podanych właściwościach. Zwracane są tylko klucze obce zdefiniowane dokładnie w określonym zestawie właściwości.

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> FindForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.EntityTypeExtensions+<FindForeignKeys>d__8))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> FindForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.EntityTypeExtensions+<FindForeignKeys>d__27))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> FindForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
static member FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.EntityTypeExtensions+<FindForeignKeys>d__8))>]
static member FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.EntityTypeExtensions+<FindForeignKeys>d__27))>]
static member FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
<Extension()>
Public Function FindForeignKeys (entityType As IEntityType, properties As IReadOnlyList(Of IProperty)) As IEnumerable(Of IForeignKey)
<Extension()>
Public Iterator Function FindForeignKeys (entityType As IEntityType, properties As IReadOnlyList(Of IProperty)) As IEnumerable(Of IForeignKey)

Parametry

entityType
IEntityType

Typ jednostki.

properties
IReadOnlyList<IProperty>

Właściwości do znalezienia kluczy obcych.

Zwraca

Klucze obce.

Atrybuty

Dotyczy