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

Searches and returns the first row.
protected static FindFirst ( Type targetType ) : object
targetType System.Type The target type
Результат object
Пример #1
0
 /// <summary>
 /// Searches and returns the first row.
 /// </summary>
 /// <param name="targetType">The target type.</param>
 /// <param name="detachedCriteria">The criteria.</param>
 /// <param name="orders">The sort order - used to determine which record is the first one.</param>
 /// <returns>A <c>targetType</c> instance or <c>null.</c></returns>
 public static object FindFirst(Type targetType, DetachedCriteria detachedCriteria, params Order[] orders)
 {
     return(ActiveRecordBase.FindFirst(targetType, detachedCriteria, orders));
 }
Пример #2
0
 /// <summary>
 /// Searches and returns the first row.
 /// </summary>
 /// <param name="targetType">The target type.</param>
 /// <param name="detachedQuery">The expression query.</param>
 /// <returns>A <c>targetType</c> instance or <c>null.</c></returns>
 public static object FindFirst(Type targetType, IDetachedQuery detachedQuery)
 {
     return(ActiveRecordBase.FindFirst(targetType, detachedQuery));
 }
Пример #3
0
 /// <summary>
 /// Searches and returns the first row.
 /// </summary>
 /// <param name="targetType">The target type</param>
 /// <param name="orders">The sort order - used to determine which record is the first one</param>
 /// <param name="criterias">The criteria expression</param>
 /// <returns>A <c>targetType</c> instance or <c>null</c></returns>
 public static object FindFirst(Type targetType, Order[] orders, params ICriterion[] criterias)
 {
     return(ActiveRecordBase.FindFirst(targetType, orders, criterias));
 }
Пример #4
0
 /// <summary>
 /// Searches and returns the first row.
 /// </summary>
 /// <param name="targetType">The target type</param>
 /// <param name="criteria">The criteria expression</param>
 /// <returns>A <c>targetType</c> instance or <c>null</c></returns>
 public static object FindFirst(Type targetType, DetachedCriteria criteria)
 {
     return(ActiveRecordBase.FindFirst(targetType, criteria));
 }