Finds an object instance by an unique ID

Namespace: Castle.ActiveRecord
Assembly:  Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0

Syntax

C#
protected internal static Object FindByPrimaryKey(
	Type targetType,
	Object id
)

Parameters

targetType
Type
The AR subclass type
id
Object
ID value

Return Value

The object instance.

See Also