public override void ToCode(StringBuilder sb, string preTabs) { //Todo:判断In,Like等特殊语法进行方法转换,否则解析器无法解析 if (BinaryType == BinaryOperatorType.Like) { sb.Append("f.Contains("); LeftOperand.ToCode(sb, preTabs); sb.Append(","); RightOperand.ToCode(sb, preTabs); sb.Append(")"); } else { LeftOperand.ToCode(sb, preTabs); sb.AppendFormat(" {0} ", GetBinaryOperatorTypeString()); RightOperand.ToCode(sb, preTabs); } }