Cast() public static method

public static Cast ( IRequest context, Field value, SqlType destType ) : Field
context IRequest
value Field
destType SqlType
return Field
Ejemplo n.º 1
0
            public static InvokeResult Execute(InvokeContext context)
            {
                var value      = context.EvaluatedArguments[0];
                var typeArg    = context.EvaluatedArguments[1];
                var typeString = typeArg.AsVarChar().Value.ToString();
                var type       = SqlType.Parse(context.Request.Context, typeString);

                return(context.Result(SystemFunctions.Cast(value, type)));
            }