IConventionForeignKeyBuilder.CanInvert Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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.