Method GetKey
GetKey<RT, T>(IPrimaryKey, Expression<Func<T, object>>)
Gets the value of the specified primary key property.
public static RT GetKey<RT, T>(this IPrimaryKey keys, Expression<Func<T, object>> expression)
Parameters
keys
IPrimaryKeyThe primary keys.
expression
Expression<Func<T, object>>The expression representing the property.
Returns
- RT
The value of the primary key property.
Type Parameters
RT
The type of the key value.
T
The type of the entity.