Share via


PropertyExtensions.IsForeignKey(IProperty) Metodo

Definizione

Attenzione

Use IReadOnlyProperty.IsForeignKey

Ottiene un valore che indica se questa proprietà viene utilizzata come chiave esterna (o parte di una chiave esterna composita).

public static bool IsForeignKey (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use IReadOnlyProperty.IsForeignKey")]
public static bool IsForeignKey (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member IsForeignKey : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
[<System.Obsolete("Use IReadOnlyProperty.IsForeignKey")>]
static member IsForeignKey : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
<Extension()>
Public Function IsForeignKey (property As IProperty) As Boolean

Parametri

property
IProperty

Proprietà da controllare.

Restituisce

true se la proprietà viene utilizzata come chiave esterna; in caso contrario false, .

Attributi

Si applica a