RepositorySettingsTFilterPredicate Property
A filter to limit which entities are returned from this repository.
Namespace: Ignition.Framework.RepositoriesAssembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
public Expression<Func<T, bool>> FilterPredicate { get; }
Public ReadOnly Property FilterPredicate As Expression(Of Func(Of T, Boolean))
Get
public:
property Expression<Func<T, bool>^>^ FilterPredicate {
Expression<Func<T, bool>^>^ get ();
}
member FilterPredicate : Expression<Func<'T, bool>> with get
Property Value
ExpressionFuncT,
Boolean
This filter should only be used as a convenient means of limiting a repository to a subset of entities.
It is applied after entities are retrieved from netFORUM, not before. As such, you can not use it to improve performance by limiting the amount of data retrieved from netFORUM.
It is applied before
InitializeSubEntities(T) is called, so any sub-entities normally initialized there will not be initialized.
Unlike the predicates accepted by
Find(ExpressionFuncT, Boolean, GetAllOptions), this predicate is executed in code only, not translated into a netFORUM database query.
As such string comparisons are case sensitive by default, unless you use a method such as
Equals(String, StringComparison) with the parameter
OrdinalIgnoreCase.