/// <summary>
/// Returns the number of records of the specified
/// type in the database
/// </summary>
/// <param name="targetType">The target type.</param>
/// <param name="detachedCriteria">The criteria expression</param>
/// <returns>The count result</returns>
public static int Count(Type targetType, DetachedCriteria detachedCriteria)
{
return(ActiveRecordBase.Count(targetType, detachedCriteria));
}