Skip to main content

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.v24.1.DataModel.dll

NuGet Package: DevExpress.Scaffolding.Core

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