RepositorySettingsTFilterPredicate Property

A filter to limit which entities are returned from this repository.

Definition

Namespace: Ignition.Framework.Repositories
Assembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
C#
public Expression<Func<T, bool>> FilterPredicate { get; }

Property Value

ExpressionFuncT, Boolean

Remarks

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.

See Also