Esempio n. 1
0
    public override Expression HandleOperation(
        QueryableFilterContext context,
        IFilterOperationField field,
        IValueNode value,
        object parsedValue)
    {
        Expression property = context.GetInstance();

        return(FilterExpressionBuilder.In(
                   property,
                   context.RuntimeTypes.Peek().Source,
                   parsedValue));
    }
Esempio n. 2
0
    public override Expression HandleOperation(
        QueryableFilterContext context,
        IFilterOperationField field,
        IValueNode value,
        object?parsedValue)
    {
        Expression property = context.GetInstance();

        parsedValue = ParseValue(value, parsedValue, field.Type, context);

        if (parsedValue is null)
        {
            throw ThrowHelper.Filtering_CouldNotParseValue(this, value, field.Type, field);
        }

        return(FilterExpressionBuilder.In(
                   property,
                   context.RuntimeTypes.Peek().Source,
                   parsedValue));
    }