Method GetPrimaryKeysSelector
GetPrimaryKeysSelector<T>(DbContext)
Gets the primary keys selector expression for the specified entity type.
public static Expression<Func<T, T>> GetPrimaryKeysSelector<T>(this DbContext ctx) where T : class
Parameters
ctx
DbContextThe DbContext instance.
Returns
- Expression<Func<T, T>>
The primary keys selector expression.
Type Parameters
T
The type of the entity.