public IQueryExpression NotIn(QueryDef subQuery, string attribute) { var helper = new QueryDefHelper(subQuery); var subAttr = helper.AddAttribute(attribute); Condition.Right = new QueryConditionPartDef { SubQuery = new SubQueryDef { QueryDef = subQuery, Attribute = subAttr } }; //Condition.SubQueryDef = subQuery; //Condition.SubQueryAttribute = attribute; Condition.Condition = ConditionOperation.NotIn; return(GetParentExpression()); }
internal override QueryConditionDef CreateConditionDef(Guid attrId, ExpressionOperation operation, string source) { var def = GetDef(); if (def != null) { var helper = new QueryDefHelper(def); var sourceDef = String.IsNullOrEmpty(source) ? null /*def.Source*/ : helper.FindSource(source); return(new QueryConditionDef { Operation = operation, Left = new QueryConditionPartDef { Attribute = helper.AddAttribute(attrId, sourceDef) } }); } return(base.CreateConditionDef(attrId, operation, source)); }