BooleanConstantExpression

What it is

BooleanConstantExpression is used to create a Constant of the type Boolean. A Constant is assigned when it is defined and can not be assigned during a session. The way it is used in the AI-Framework is by assigning a value in the code (so-called hard-coded), which will be translated into a BooleanConstantExpression by the AI-Framework.

Code example

private IEntityCollection<ArticleEntity> ArticlesToBeDeleted
{
    get 
    { 
        return Property(() => 
            Article.Select<ArticleEntity>
            (AutoLoad.Off).Where(a => 
            a.ArticleImported.Matches(true, false, true))); 
    }
}

Explanation of the example

This is the definition of an Entity, based on ArticleEntity, with the name ArticlesToBeDeleted.
In it is a selection, where the ArticleImported must match a Boolean Constant, in this example true

Note: The first argument true in this example is the value that is matched with a.ArticleImported.

So ArticlesToBeDeleted is a subset of ArticleEntity. The subset contains the records where ArticleImported equals true