Bagikan melalui


IConventionForeignKey.HasDependentToPrincipal Metode

Definisi

Overload

HasDependentToPrincipal(String, Boolean)
Kedaluwarsa.

Mengatur properti navigasi pada jenis entitas dependen yang menunjuk ke entitas utama.

HasDependentToPrincipal(MemberInfo, Boolean)
Kedaluwarsa.

Mengatur properti navigasi pada jenis entitas dependen yang menunjuk ke entitas utama.

HasDependentToPrincipal(String, Boolean)

Perhatian

Use SetDependentToPrincipal

Mengatur properti navigasi pada jenis entitas dependen yang menunjuk ke entitas utama.

public Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation HasDependentToPrincipal (string name, bool fromDataAnnotation = false);
[System.Obsolete("Use SetDependentToPrincipal")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation HasDependentToPrincipal (string name, bool fromDataAnnotation = false);
[System.Obsolete("Use SetDependentToPrincipal")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation? HasDependentToPrincipal (string? name, bool fromDataAnnotation = false);
abstract member HasDependentToPrincipal : string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
[<System.Obsolete("Use SetDependentToPrincipal")>]
abstract member HasDependentToPrincipal : string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
override this.HasDependentToPrincipal : string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
Public Function HasDependentToPrincipal (name As String, Optional fromDataAnnotation As Boolean = false) As IConventionNavigation
Public Overridable Function HasDependentToPrincipal (name As String, Optional fromDataAnnotation As Boolean = false) As IConventionNavigation

Parameter

name
String

Nama properti navigasi pada jenis dependen. Meneruskan null akan mengakibatkan tidak ada properti navigasi yang ditentukan.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Properti navigasi yang baru dibuat.

Atribut

Berlaku untuk

HasDependentToPrincipal(MemberInfo, Boolean)

Perhatian

Use SetDependentToPrincipal

Mengatur properti navigasi pada jenis entitas dependen yang menunjuk ke entitas utama.

public Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation HasDependentToPrincipal (System.Reflection.MemberInfo property, bool fromDataAnnotation = false);
[System.Obsolete("Use SetDependentToPrincipal")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation HasDependentToPrincipal (System.Reflection.MemberInfo property, bool fromDataAnnotation = false);
[System.Obsolete("Use SetDependentToPrincipal")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation? HasDependentToPrincipal (System.Reflection.MemberInfo? property, bool fromDataAnnotation = false);
abstract member HasDependentToPrincipal : System.Reflection.MemberInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
[<System.Obsolete("Use SetDependentToPrincipal")>]
abstract member HasDependentToPrincipal : System.Reflection.MemberInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
override this.HasDependentToPrincipal : System.Reflection.MemberInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
Public Function HasDependentToPrincipal (property As MemberInfo, Optional fromDataAnnotation As Boolean = false) As IConventionNavigation
Public Overridable Function HasDependentToPrincipal (property As MemberInfo, Optional fromDataAnnotation As Boolean = false) As IConventionNavigation

Parameter

property
MemberInfo

Properti navigasi pada jenis dependen. Meneruskan null akan mengakibatkan tidak ada properti navigasi yang ditentukan.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Properti navigasi yang baru dibuat.

Atribut

Berlaku untuk