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
ctxDbContextThe DbContext instance.
Returns
Type Parameters
TThe type of the entity.