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
ctxDbContextThe DbContext instance.
Returns
- Expression<Func<T, T>>
The primary keys selector expression.
Type Parameters
TThe type of the entity.