Table of Contents

Method GetKeyNames

Namespace
Innova.Data
Assembly
Innova.Data.dll

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 DbContext

The DbContext instance.

Returns

List<string>

The names of the primary keys.

Type Parameters

T

The type of the entity.