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

IRepository<TEntity, TPrimaryKey>.GetPrimaryKey(TEntity) Method

Returns the primary key value for the entity.

Namespace: DevExpress.Mvvm.DataModel

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

Declaration

TPrimaryKey GetPrimaryKey(
    TEntity entity
)

Parameters

Name Type Description
entity TEntity

An entity for which to obtain a primary key value.

Returns

Type Description
TPrimaryKey

A primary key value for the entity.

See Also