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

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

Finds records based on a property value - automatically converts null values to IS NULL style queries.
protected static FindAllByProperty ( Type targetType, String orderByColumn, String property, object value ) : Array
targetType System.Type The target type
orderByColumn String The column name to be ordered ASC
property String A property name (not a column name)
value object The value to be equals to
Результат System.Array
		protected internal static Array FindAllByProperty(Type targetType, String orderByColumn, String property, object value)
		{
			ICriterion criteria = (value == null) ? Expression.IsNull(property) : Expression.Eq(property, value);
			return FindAll(targetType, new Order[] {Order.Asc(orderByColumn)}, criteria);
		}

Same methods

ActiveRecordBase::FindAllByProperty ( Type targetType, String property, object value ) : Array

Usage Example

Пример #1
0
 /// <summary>
 /// Finds records based on a property value - automatically converts null values to IS NULL style queries.
 /// </summary>
 /// <param name="targetType">The target type</param>
 /// <param name="orderByColumn">The column name to be ordered ASC</param>
 /// <param name="property">A property name (not a column name)</param>
 /// <param name="value">The value to be equals to</param>
 /// <returns></returns>
 public static Array FindAllByProperty(Type targetType, String orderByColumn, String property, object value)
 {
     return(ActiveRecordBase.FindAllByProperty(targetType, orderByColumn, property, value));
 }
All Usage Examples Of Castle.ActiveRecord.ActiveRecordBase::FindAllByProperty