Castle.ActiveRecord.ActiveRecordBase.Exists C# (CSharp) Метод

Exists() защищенный статический Метод

Check if there is any records in the db for the target type
protected static Exists ( Type targetType ) : bool
targetType System.Type The target type.
Результат bool
		protected internal static bool Exists(Type targetType)
		{
			return Count(targetType) > 0;
		}

Same methods

ActiveRecordBase::Exists ( Type targetType, DetachedCriteria detachedCriteria ) : bool
ActiveRecordBase::Exists ( Type targetType, object id ) : bool
ActiveRecordBase::Exists ( Type targetType, string filter ) : bool

Usage Example

Пример #1
0
 /// <summary>
 /// Check if any instance matches the query.
 /// </summary>
 /// <param name="targetType">target Type</param>
 /// <param name="detachedQuery">The query expression</param>
 /// <returns><c>true</c> if an instance is found; otherwise <c>false</c>.</returns>
 public static bool Exists(Type targetType, IDetachedQuery detachedQuery)
 {
     return(ActiveRecordBase.Exists(targetType, detachedQuery));
 }
All Usage Examples Of Castle.ActiveRecord.ActiveRecordBase::Exists