Skip to main content

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

Returns the primary key value for the entity.

Namespace: DevExpress.Mvvm.DataModel

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

NuGet Package: DevExpress.Scaffolding.Core

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