RepositoryReadOnlyTFindTCustomEntity(ExpressionFuncTCustomEntity, Boolean, ExpressionFuncTCustomEntity, IEnumerableNetForumEntity) Method

Retrieves a list of all entities matching a given set of search criteria

Definition

Namespace: Ignition.Framework.Repositories
Assembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
C#
public IReadOnlyCollection<TCustomEntity> Find<TCustomEntity>(
	Expression<Func<TCustomEntity, bool>> predicate,
	params Expression<Func<TCustomEntity, IEnumerable<NetForumEntity>>>[] collectionsToPreload
)
where TCustomEntity : new()

Parameters

predicate  ExpressionFuncTCustomEntity, Boolean
A lambda expression indicating the search criteria to use. This expression will be translated into the NetFORUM query language and executed by NetFORUM server-side, ensuring optimal performance. See the Ignition User Guide for more information on what sort of expressions are supported.
collectionsToPreload  ExpressionFuncTCustomEntity, IEnumerableNetForumEntity
A set of NetForumSubEntityCollectionAttribute annotated collections which should be preloaded, overriding any defaults or FetchStrategyHintAttribute on the collection property itself.

Type Parameters

TCustomEntity
An overridden entity type, as registered with the CustomEntityRegistrar

Return Value

IReadOnlyCollectionTCustomEntity
The requested list

See Also