Skip to main content
A newer version of this page is available. .

EntityTraits<TEntity, TPrimaryKey>.HasPrimaryKey Property

A function that determines whether the given entity has a primary key assigned (the primary key is not null). Always returns true if the primary key is a non-nullable value type.

Namespace: DevExpress.Mvvm.Utils

Assembly: DevExpress.Mvvm.v19.1.DataModel.dll

Declaration

public Func<TEntity, bool> HasPrimaryKey { get; }

Property Value

Type
Func<TEntity, Boolean>
See Also