コード例 #1
0
        public Expression ApplyTake(Expression source, long?top, ODataPath path)
        {
            if (top == null)
            {
                return(source);
            }

            ConstantExpression topConstant    = Visitor.AddTopConstant((int)top.Value, path);
            MethodInfo         takeMethodInfo = OeMethodInfoHelper.GetTakeMethodInfo(ParameterType);

            return(Expression.Call(takeMethodInfo, source, topConstant));
        }