EntityTraits<TEntity, TPrimaryKey> Properties
Incapsulates operations to obtain and set the primary key value of a given entity.| Name | Description |
|---|---|
| GetPrimaryKey | The function that returns the primary key value of a given entity. |
| HasPrimaryKey | 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. |
| SetPrimaryKey | The action that assigns the primary key value to a given entity. |
See Also