Bagikan melalui


IConventionForeignKeyBuilder.CanInvert Metode

Definisi

Mengembalikan nilai yang menunjukkan apakah jenis entitas utama dan dependen dapat dialihkan dari sumber konfigurasi saat ini

public bool CanInvert (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> newForeignKeyProperties, bool fromDataAnnotation = false);
public bool CanInvert (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? newForeignKeyProperties, bool fromDataAnnotation = false);
abstract member CanInvert : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> bool
Public Function CanInvert (newForeignKeyProperties As IReadOnlyList(Of IConventionProperty), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameter

newForeignKeyProperties
IReadOnlyList<IConventionProperty>

Properti yang akan digunakan sebagai kunci asing baru atau null untuk menggunakan properti yang kompatibel.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

true jika jenis entitas utama dan dependen dapat dialihkan.

Berlaku untuk