Table of Contents

Method GetSqlKeys

Namespace
Innova.Data
Assembly
Innova.Data.dll

GetSqlKeys<T>(DbContext, T)

Gets the SQL primary keys for the specified entity.

public static PrimaryKeys<T> GetSqlKeys<T>(this DbContext ctx, T entity) where T : class

Parameters

ctx DbContext

The DbContext instance.

entity T

The entity.

Returns

PrimaryKeys<T>

The SQL primary keys as a PrimaryKeys instance.

Type Parameters

T

The type of the entity.