Skip to content

Commit

Permalink
SQLConditions is now also expression. Closes #67.
Browse files Browse the repository at this point in the history
Useful when creating an expression tree.
  • Loading branch information
hisystems committed Aug 14, 2012
1 parent e1c97ef commit f2c4967
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion SQL/Select/SQLConditions.cs
Expand Up @@ -9,10 +9,11 @@
using System;
using System.Data;
using System.Collections.Generic;
using DatabaseObjects.SQL.Serializers;

namespace DatabaseObjects.SQL
{
public class SQLConditions : IEnumerable
public class SQLConditions : SQLExpression, IEnumerable
{
private ArrayList pobjSQLConditions = new ArrayList();
private List<LogicalOperator> pobjLogicalOperators = new List<LogicalOperator>();
Expand Down Expand Up @@ -220,5 +221,10 @@ public System.Collections.IEnumerator GetEnumerator()
{
return pobjSQLConditions.GetEnumerator();
}

internal override string SQL(Serializer serializer)
{
return serializer.SerializeConditions(this);
}
}
}

0 comments on commit f2c4967

Please sign in to comment.