Exemple #1
0
        public override LinqExtender.Ast.Expression VisitMemberExpression(LinqExtender.Ast.MemberExpression expression)
        {
            string name = expression.FullName.TrimStart(new char[] { '.' });

            if (this.IsNotUsed(name))
            {
                this.whereBuilder.Append(" NOT ");
            }

            this.whereBuilder.Append(name);
            return(expression);
        }
Exemple #2
0
        internal override LinqExtender.Ast.Expression VisitMemberExpression(LinqExtender.Ast.MemberExpression expression)
        {
            string name = expression.FullName.TrimStart(new char[] { '.' });

            if (this.IsNotUsed(name))
            {
                this.whereBuilder.Append(" NOT ");
            }

            Type t = new ReferenceType().GetType();

            if (expression.DeclaringType == t && name.Contains(".Value"))
            {
                name = name.Replace(".Value", "");
            }

            this.whereBuilder.Append(name);
            return(expression);
        }
Exemple #3
0
 public virtual LinqExtender.Ast.Expression VisitMemberExpression(LinqExtender.Ast.MemberExpression expression)
 {
     return(expression);
 }
Exemple #4
0
 public override LinqExtender.Ast.Expression VisitMemberExpression(LinqExtender.Ast.MemberExpression expression)
 {
     writer.Write(expression.FullName);
     return(expression);
 }