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