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
keysIPrimaryKeyThe primary keys.
expressionExpression<Func<T, object>>The expression representing the property.
Returns
- RT
The value of the primary key property.
Type Parameters
RTThe type of the key value.
TThe type of the entity.