Check if any instance matching the criteria exists in the database.

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

Syntax

C#
protected internal static bool Exists(
	Type targetType,
	DetachedCriteria detachedCriteria
)

Parameters

targetType
Type
The target type.
detachedCriteria
DetachedCriteria
The criteria expression

Return Value

true if an instance is found; otherwise false.

See Also