Beispiel #1
0
        public void Parse(PredicationFieldInfo ctx)
        {
            switch (Predicate.ToLower())
            {
                case "all":
                    ctx.PredicationType = PredicationType.All;
                    break;
                case "any":
                    ctx.PredicationType = PredicationType.Any;
                    break;
                case "some":
                    ctx.PredicationType = PredicationType.Some;
                    break;
                default:
                    ctx.PredicationType = PredicationType.Unknown;
                    break;
            }
            ctx.SelectContext = new SelectContext();

            this.Select.Parse(ctx.SelectContext);
        }
Beispiel #2
0
        public void Parse(PredicationFieldInfo ctx)
        {
            switch (Predicate.ToLower())
            {
            case "all":
                ctx.PredicationType = PredicationType.All;
                break;

            case "any":
                ctx.PredicationType = PredicationType.Any;
                break;

            case "some":
                ctx.PredicationType = PredicationType.Some;
                break;

            default:
                ctx.PredicationType = PredicationType.Unknown;
                break;
            }
            ctx.SelectContext = new SelectContext();

            this.Select.Parse(ctx.SelectContext);
        }