Exemplo n.º 1
0
        public IContentQuery <T> WhereContains(string fieldName, object value)
        {
            var expression = new WhereContainsExpression(this.Expression, fieldName, value);

            return(this.Create(expression));
        }
Exemplo n.º 2
0
 protected abstract void VisitWhereContains(WhereContainsExpression expression);
Exemplo n.º 3
0
 protected override void VisitWhereContains(WhereContainsExpression expression)
 {
     whereClause.AppendFormat("(doc[{0}]&&doc[{0}].indexOf({1})>=0)", MakeValue(expression.FieldName), MakeValue(expression.Value));
     this.viewNameBuilder.AppendFormat("{0}_CONTAINS_{1}", expression.FieldName, AsViewNameString(expression.Value));
 }