diff --git a/Marr.Data/QGen/SortBuilder.cs b/Marr.Data/QGen/SortBuilder.cs index 0865381a5..2577cc7e5 100644 --- a/Marr.Data/QGen/SortBuilder.cs +++ b/Marr.Data/QGen/SortBuilder.cs @@ -45,28 +45,28 @@ public SortBuilder(QueryBuilder baseBuilder, IDataMapper db, WhereBuilder public virtual SortBuilder OrWhere(Expression> filterExpression) { - var orWhere = new WhereBuilder(_db.Command, _dialect, filterExpression, _tables, _useAltName, true); + var orWhere = new WhereBuilder(_db.Command, _dialect, filterExpression, _tables, false, true); _whereBuilder.Append(orWhere, WhereAppendType.OR); return this; } public virtual SortBuilder OrWhere(string whereClause) { - var orWhere = new WhereBuilder(whereClause, _useAltName); + var orWhere = new WhereBuilder(whereClause, false); _whereBuilder.Append(orWhere, WhereAppendType.OR); return this; } public virtual SortBuilder AndWhere(Expression> filterExpression) { - var andWhere = new WhereBuilder(_db.Command, _dialect, filterExpression, _tables, _useAltName, true); + var andWhere = new WhereBuilder(_db.Command, _dialect, filterExpression, _tables, false, true); _whereBuilder.Append(andWhere, WhereAppendType.AND); return this; } public virtual SortBuilder AndWhere(string whereClause) { - var andWhere = new WhereBuilder(whereClause, _useAltName); + var andWhere = new WhereBuilder(whereClause, false); _whereBuilder.Append(andWhere, WhereAppendType.AND); return this; }