Table of Contents

Method GetPrimaryKeysSelector

Namespace
Innova.Data
Assembly
Innova.Data.dll

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 DbContext

The DbContext instance.

Returns

Expression<Func<T, T>>

The primary keys selector expression.

Type Parameters

T

The type of the entity.