IReadOnlyEntityType.FindForeignKey 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.
Overload
FindForeignKey(IReadOnlyProperty, IReadOnlyKey, IReadOnlyEntityType) |
Mendapatkan kunci asing untuk properti tertentu yang menunjuk ke kunci primer atau alternatif tertentu. Mengembalikan |
FindForeignKey(IReadOnlyList<IReadOnlyProperty>, IReadOnlyKey, IReadOnlyEntityType) |
Mendapatkan kunci asing untuk properti tertentu yang menunjuk ke kunci primer atau alternatif tertentu.
Mengembalikan |
FindForeignKey(IReadOnlyProperty, IReadOnlyKey, IReadOnlyEntityType)
Mendapatkan kunci asing untuk properti tertentu yang menunjuk ke kunci primer atau alternatif tertentu. Mengembalikan null
jika tidak ada kunci asing yang ditemukan.
public virtual Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey? FindForeignKey (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType principalEntityType);
abstract member FindForeignKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey
override this.FindForeignKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey
Public Overridable Function FindForeignKey (property As IReadOnlyProperty, principalKey As IReadOnlyKey, principalEntityType As IReadOnlyEntityType) As IReadOnlyForeignKey
Parameter
- property
- IReadOnlyProperty
Properti tempat kunci asing didefinisikan.
- principalKey
- IReadOnlyKey
Kunci utama atau alternatif yang dirujuk.
- principalEntityType
- IReadOnlyEntityType
Jenis entitas yang ditargetkan oleh hubungan. Ini mungkin berbeda dari jenis yang principalKey
ditentukan ketika hubungan menargetkan jenis turunan dalam hierarki pewarisan (karena kunci ditentukan pada jenis dasar hierarki).
Mengembalikan
Kunci asing, atau null
jika tidak ada yang didefinisikan.
Berlaku untuk
FindForeignKey(IReadOnlyList<IReadOnlyProperty>, IReadOnlyKey, IReadOnlyEntityType)
Mendapatkan kunci asing untuk properti tertentu yang menunjuk ke kunci primer atau alternatif tertentu.
Mengembalikan null
jika tidak ada kunci asing yang ditemukan.
public Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey? FindForeignKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType principalEntityType);
abstract member FindForeignKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey
Public Function FindForeignKey (properties As IReadOnlyList(Of IReadOnlyProperty), principalKey As IReadOnlyKey, principalEntityType As IReadOnlyEntityType) As IReadOnlyForeignKey
Parameter
- properties
- IReadOnlyList<IReadOnlyProperty>
Properti tempat kunci asing didefinisikan.
- principalKey
- IReadOnlyKey
Kunci utama atau alternatif yang dirujuk.
- principalEntityType
- IReadOnlyEntityType
Jenis entitas yang ditargetkan oleh hubungan. Ini mungkin berbeda dari jenis yang principalKey
ditentukan ketika hubungan menargetkan jenis turunan dalam hierarki pewarisan (karena kunci ditentukan pada jenis dasar hierarki).
Mengembalikan
Kunci asing, atau null
jika tidak ada yang didefinisikan.
Berlaku untuk
Entity Framework
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk