Table of Contents

Method GetKey

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

GetKey<RT, T>(IPrimaryKey, Expression<Func<T, object>>)

Gets the value of the specified primary key property.

public static RT GetKey<RT, T>(this IPrimaryKey keys, Expression<Func<T, object>> expression)

Parameters

keys IPrimaryKey

The primary keys.

expression Expression<Func<T, object>>

The expression representing the property.

Returns

RT

The value of the primary key property.

Type Parameters

RT

The type of the key value.

T

The type of the entity.