Overview
Using EPiServer, you may use the FindPagesWithCriteria method to retrieve a list of pages based on certain properties, but the helpfully enumerated conditions may be confusing. After all, with a binary inequality operator it is quite important to know the order of the expressions...
Context
You use PropertyCriteria objects to set the criteria for a search and you can use the Condition property to determine the operator. Suppose you selected the GreaterThan operator:
IF --PROPERTY-- > --VALUE-- THEN
But is it actually:
IF --VALUE-- > --PROPERTY-- THEN
The two operations give entirely different answers, and they are not even inverse. The inverse operator to > (greater-than) is <= (less-than-or-equal).
The answer
A search through the EPiServer documentation reveals that the answer is that EPiServer will use:
IF --PROPERTY-- --CONDITION-- --VALUE-- THEN
Versions
Metadata
- Categories: Software development, EPiServer, ASP.NET
- Additional keywords: EPDataFactory, FindPagesWithCriteria, Search, Publishing dates, binary operator, inequality, Greater than, Less than, CompareCondition, PageStartPublish, PageStopPublish
- Technorati Tags:
software development,
.NET,
ASP.NET,
EPiServer,
FindPagesWithCriteria,
search