Skip to content

Instantly share code, notes, and snippets.

@islaytitans
Last active January 2, 2017 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save islaytitans/38a98607fbbae46d20769f1db53d1f74 to your computer and use it in GitHub Desktop.
Save islaytitans/38a98607fbbae46d20769f1db53d1f74 to your computer and use it in GitHub Desktop.
public class ProductsOrderedCondition<T> : TypedQueryableStringOperatorCondition<T, IndexedContact>
where T : VisitorRuleContext<IndexedContact>
{
protected override Expression<Func<IndexedContact, bool>> GetResultPredicate(T ruleContext)
{
string fieldName = "contact.SampleOrder.Skus";
return this.GetCompareExpression((Expression<Func<IndexedContact, string>>)(c => c[fieldName]), this.Value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment