Skip to main content

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.v24.1.DataModel.dll

NuGet Package: DevExpress.Scaffolding.Core

Declaration

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

Property Value

Type
Func<TEntity, Boolean>
See Also