Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

SiteCriterion for global site

How do I write a SiteCriterion to get entities only from the global/null site (not including specific sites)?
Dec 19, 2008 9:21

Hi Magnus,

It's not directly built into the criterion, but it is possible to achieve this by subclassing SiteCriterion and overriding its GetQuery(string propertyName) method. I.e:

public override string GetQuery(string propertyName)
  return propertyName + " IS NULL";

Jan 21, 2009 21:53
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.