RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

TableDefinition<(Of <(<'TEntity>)>)>..::..GetEntityFromPrimaryKeyValue Method

Gets the entity from primary key value.

Namespace:  RingSoft.DbLookup.ModelDefinition
Assembly:  RingSoft.DbLookup (in RingSoft.DbLookup.dll)

Syntax


public TEntity GetEntityFromPrimaryKeyValue(
	PrimaryKeyValue primaryKeyValue
)
Public Function GetEntityFromPrimaryKeyValue ( _
	primaryKeyValue As PrimaryKeyValue _
) As TEntity
public:
TEntity GetEntityFromPrimaryKeyValue(
	PrimaryKeyValue^ primaryKeyValue
)

Parameters

primaryKeyValue
Type: RingSoft.DbLookup..::..PrimaryKeyValue
The primary key value.

Return Value

TEntity.

Exceptions


ExceptionCondition
ArgumentExceptionThe passed in primary key value's table definition does not match this object