Exemple #1
0
        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));
        }
Exemple #2
0
        internal override QuerySourceDef FindSource(string alias)
        {
            var helper = new QueryDefHelper(Def);

            return(helper.FindSource(alias));
        }