IRepository<TEntity, TPrimaryKey>.GetPrimaryKey(TEntity) Method
Returns the primary key value for the entity.
Namespace: DevExpress.Mvvm.DataModel
Assembly: DevExpress.Mvvm.v25.1.DataModel.dll
NuGet Package: DevExpress.Scaffolding.Core
Declaration
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