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


Bookmark with :
Digg It! DZone StumbleUpon Technorati Reddit Del.icio.us Newsvine Furl Blinklist
posted @ Friday, January 18, 2008 2:15 PM | in EPiServer ASP.NET Software Development

Comments

No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  


Please add 4 and 3 and type the answer here: