public QueryCondition AddCondition(QueryFunction field, ConditionEquality equality, object value) { if (conditions.Count == 0) { return conditions.AddCondition(ConditionRelations.First, field.ToString(), equality, value); } else { return conditions.AddCondition(ConditionRelations.And, field.ToString(), equality, value); } }
public void AddField(QueryFunction field) { this.fields.Add(field.ToString()); }
public QueryCondition AddCondition(ConditionRelations relation, QueryFunction field, object value) { if (conditions.Count == 0) { return conditions.AddCondition(ConditionRelations.First, field.ToString(), ConditionEquality.Equal, value); } else { return conditions.AddCondition(relation, field.ToString(), ConditionEquality.Equal, value); } }