TableDefinition<(Of <(<'TEntity>)>)>..::..GetEntityFromPrimaryKeyValue Method
Gets the entity from primary key value.
Namespace:
RingSoft.DbLookup.ModelDefinitionAssembly: 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
Exception | Condition |
---|---|
ArgumentException | The passed in primary key value's table definition does not match this object |