Table of Contents

Method GetPrimaryKey

Namespace
Innova.Data
Assembly
Innova.Data.dll

GetPrimaryKey(DbContext, Type, string)

Gets the primary key for the specified entity type and key string.

public static IPrimaryKey GetPrimaryKey(this DbContext ctx, Type entityType, string key)

Parameters

ctx DbContext

The DbContext instance.

entityType Type

The entity type.

key string

The key string.

Returns

IPrimaryKey

The primary key as an IPrimaryKey instance.