Esempio n. 1
0
        public virtual WebFilter <TEntity> Parse <TEntity>(string key, string value)
        {
            var parts   = (value ?? "").Split(',').ToList();
            var operand = ExtractFilterOperand(parts);

            var chain  = _expressionParser.ParseChain <TEntity>(key);
            var values = ConvertFilterValues(operand, chain, parts);

            return(new WebFilter <TEntity>(chain, operand, values));
        }