Method GetKeyNames
GetKeyNames<T>(DbContext)
Gets the names of the primary keys for the specified entity type.
public static List<string> GetKeyNames<T>(this DbContext ctx) where T : class
Parameters
ctx
DbContextThe DbContext instance.
Returns
Type Parameters
T
The type of the entity.