Example #1
0
 protected override void VisitWhereStartsWith(WhereStartsWithExpression expression)
 {
     var field = MakeValue(expression.FieldName);
     var value = MakeValue(expression.Value);
     whereClause.AppendFormat("(doc[{0}]&&doc[{0}].match(/^{1}/))", field, value);
     this.viewNameBuilder.AppendFormat("{0}_STARTSWITH_{1}", expression.FieldName, AsViewNameString(expression.Value));
 }
Example #2
0
 protected abstract void VisitWhereStartsWith(WhereStartsWithExpression expression);