IEntityType.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<IProperty>, IKey, IEntityType) |
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.IForeignKey? 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.IForeignKey
override this.FindForeignKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IForeignKey
Public Overridable Function FindForeignKey (property As IReadOnlyProperty, principalKey As IReadOnlyKey, principalEntityType As IReadOnlyEntityType) As IForeignKey
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<IProperty>, IKey, IEntityType)
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.IForeignKey FindForeignKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IEntityType principalEntityType);
abstract member FindForeignKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IForeignKey
Public Function FindForeignKey (properties As IReadOnlyList(Of IProperty), principalKey As IKey, principalEntityType As IEntityType) As IForeignKey
Parameter
- properties
- IReadOnlyList<IProperty>
Properti tempat kunci asing didefinisikan.
- principalKey
- IKey
Kunci utama atau alternatif yang dirujuk.
- principalEntityType
- IEntityType
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.IForeignKey? 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.IForeignKey
Public Function FindForeignKey (properties As IReadOnlyList(Of IReadOnlyProperty), principalKey As IReadOnlyKey, principalEntityType As IReadOnlyEntityType) As IForeignKey
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