Skip to main content
A newer version of this page is available. .

ExpressionHelper.IsFitEntity<TEntity>(TEntity, Expression<Func<TEntity, Boolean>>) Method

Determines whether the given entity satisfies the condition represented by a lambda expression.

Namespace: DevExpress.Mvvm.Utils

Assembly: DevExpress.Mvvm.v20.2.DataModel.dll

NuGet Packages: DevExpress.Scaffolding.Core, DevExpress.WindowsDesktop.Mvvm.DataModel

Declaration

public static bool IsFitEntity<TEntity>(
    TEntity entity,
    Expression<Func<TEntity, bool>> predicate
)
    where TEntity : class

Parameters

Name Type Description
entity TEntity

An object to test.

predicate Expression<Func<TEntity, Boolean>>

A function that determines whether the given object satisfies the condition.

Type Parameters

Name
TEntity

Returns

Type
Boolean
See Also