RuntimeForeignKey Konstruktor
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.
Ini adalah API internal yang mendukung infrastruktur Entity Framework Core dan tidak tunduk pada standar kompatibilitas yang sama dengan API publik. Ini dapat diubah atau dihapus tanpa pemberitahuan dalam rilis apa pun. Anda hanya boleh menggunakannya langsung dalam kode Anda dengan sangat hati-hati dan mengetahui bahwa melakukannya dapat mengakibatkan kegagalan aplikasi saat memperbarui ke rilis Core Kerangka Kerja Entitas baru.
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RuntimeForeignKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> dependentProperties, Microsoft.EntityFrameworkCore.Metadata.RuntimeKey principalKey, Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType dependentEntityType, Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType principalEntityType, Microsoft.EntityFrameworkCore.DeleteBehavior deleteBehavior, bool unique, bool required, bool requiredDependent, bool ownership);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> * Microsoft.EntityFrameworkCore.Metadata.RuntimeKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType * Microsoft.EntityFrameworkCore.DeleteBehavior * bool * bool * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey
Public Sub New (dependentProperties As IReadOnlyList(Of RuntimeProperty), principalKey As RuntimeKey, dependentEntityType As RuntimeEntityType, principalEntityType As RuntimeEntityType, deleteBehavior As DeleteBehavior, unique As Boolean, required As Boolean, requiredDependent As Boolean, ownership As Boolean)
Parameter
- dependentProperties
- IReadOnlyList<RuntimeProperty>
- principalKey
- RuntimeKey
- dependentEntityType
- RuntimeEntityType
- principalEntityType
- RuntimeEntityType
- deleteBehavior
- DeleteBehavior
- unique
- Boolean
- required
- Boolean
- requiredDependent
- Boolean
- ownership
- Boolean
- Atribut
Berlaku untuk
Entity Framework