예제 #1
0
 protected override Expression VisitExtensibleMatch(LdapExtensibleMatch node)
 {
     _sb.Append("(");
     if (node.Attribute.NodeType != (ExpressionType)LdapExpressionType.Attribute)
     {
         throw new NotSupportedException(string.Format("Cannot have expression of type {0} as part of a filter.", node.Attribute.NodeType));
     }
     this.Visit(node.Attribute);
     if (node.IncludeDistinguishedName)
     {
         _sb.Append(":dn");
     }
     _sb.Append(":");
     _sb.Append(node.MatchingRule.FilterExpression);
     _sb.Append(":=");
     this.Visit(node.Value);
     _sb.Append(")");
     return(node);
 }
예제 #2
0
 protected virtual Expression VisitExtensibleMatch(LdapExtensibleMatch node)
 {
     return(node.Update(this.Visit(node.Attribute), this.Visit(node.Value)));
 }