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.v22.2.DataModel.dll

NuGet Package: DevExpress.Scaffolding.Core


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

Property Value

Func<TEntity, Boolean>
See Also