Esempio n. 1
0
 public ConditionConstructor AddSubQueryCondition(QueryConditionRelationType conditionRelationType,
                                                  string filedName, QueryConditionOperatorType conditionOperatorType, string subQuerySQLTemplate)
 {
     if (!IsStringNullOrEmpty(subQuerySQLTemplate))
     {
         SubQueryCondition condition = new SubQueryCondition()
         {
             ConditionRelationType = conditionRelationType,
             FieldName             = filedName,
             OperatorType          = conditionOperatorType,
             SubQuerySQLTemplate   = subQuerySQLTemplate,
             SubQueryConditions    = new List <Condition>()
         };
         m_conditions.Add(condition);
         ConditionConstructor result = new ConditionConstructor(condition.SubQueryConditions);
         return(result);
     }
     return(null);
 }