Share via


PropertyExtensions.IsKey(IProperty) Metodo

Definizione

Attenzione

Use IReadOnlyProperty.IsKey

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

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

Parametri

property
IProperty

Proprietà da controllare.

Restituisce

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

Attributi

Si applica a