Table of Contents

Method ConvertToPrimaryKeys

Namespace
Innova.Data.Entity
Assembly
Innova.Data.dll

ConvertToPrimaryKeys<T>(IPrimaryKey)

Converts an IPrimaryKey object to an instance of PrimaryKeys<T>.

public static PrimaryKeys<T> ConvertToPrimaryKeys<T>(this IPrimaryKey keys) where T : class

Parameters

keys IPrimaryKey

The IPrimaryKey object.

Returns

PrimaryKeys<T>

An instance of PrimaryKeys<T>.

Type Parameters

T

The type of the entity.

ConvertToPrimaryKeys(IPrimaryKey, Type)

Converts an IPrimaryKey object to an instance of PrimaryKeys with the specified entity type.

public static object ConvertToPrimaryKeys(this IPrimaryKey keys, Type entityType)

Parameters

keys IPrimaryKey

The IPrimaryKey object.

entityType Type

The type of the entity.

Returns

object

An instance of PrimaryKeys.