Method GetIntKey
GetIntKey<T>(IPrimaryKey, Expression<Func<T, object>>)
Gets the integer value of the specified primary key property.
public static int GetIntKey<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
- int
The integer value of the primary key property.
Type Parameters
T
The type of the entity.