Skip to content

Commit 57c8a13

Browse files
committed
more clean up of code that is not needed
1 parent 25f8294 commit 57c8a13

File tree

3 files changed

+8
-26
lines changed

3 files changed

+8
-26
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace SubSonic.Linq.Expressions.Structure
99
{
1010
using Infrastructure;
1111

12-
public abstract partial class DbExpressionVisitor
12+
public abstract class DbExpressionVisitor
1313
: ExpressionVisitor
1414
{
1515
protected static readonly char[] splitters = new char[] { '\n', '\r' };
@@ -119,5 +119,10 @@ protected internal virtual DbExpression VisitExpression(DbExpression expression)
119119
{
120120
throw Error.NotImplemented();
121121
}
122+
123+
protected internal virtual Expression VisitWhere(DbWhereExpression where)
124+
{
125+
throw Error.NotImplemented();
126+
}
122127
}
123128
}

SubSonic/Linq/Expressions/Structure/DbExpressionVisitor/DbExpressionVisitorWhere.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

SubSonic/Linq/Expressions/Structure/SqlFormatter/TSqlFormatterVisitWhere.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ protected internal override Expression VisitWhere(DbWhereExpression where)
2929
if (((DbExpressionType)where.NodeType) == DbExpressionType.Where && !IsPredicate(where.Expression))
3030
{
3131
Write(Fragments.LEFT_PARENTHESIS);
32-
base.VisitWhere(where);
32+
Visit(where.Expression);
3333
Write($"{Fragments.RIGHT_PARENTHESIS} <> 0");
3434
}
3535
else
3636
{
37-
base.VisitWhere(where);
37+
Visit(where.Expression);
3838
}
3939

4040
if (((DbExpressionType)where.NodeType).In(DbExpressionType.Exists, DbExpressionType.NotExists))

0 commit comments

Comments
 (0)