示例#1
0
 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);
     }
 }
示例#2
0
 public void AddField(QueryFunction field)
 {
     this.fields.Add(field.ToString());
 }
示例#3
0
 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);
     }
 }