示例#1
0
        public static string GetMethodValue(ExpressionContext context, Expression item, ResolveExpressType type)
        {
            var newContext = context.GetCopyContext();

            newContext.MappingColumns   = context.MappingColumns;
            newContext.MappingTables    = context.MappingTables;
            newContext.InitMappingInfo  = context.InitMappingInfo;
            newContext.RefreshMapping   = context.RefreshMapping;
            newContext.IgnoreComumnList = context.IgnoreComumnList;
            newContext.SqlFuncServices  = context.SqlFuncServices;
            newContext.Resolve(item, type);
            context.Index          = newContext.Index;
            context.ParameterIndex = newContext.ParameterIndex;
            if (newContext.Parameters.HasValue())
            {
                context.Parameters.AddRange(newContext.Parameters);
            }
            return(newContext.Result.GetResultString());
        }