public static String ConvertTwoWaySql2DisplaySql(String twoWaySql, String[] argNames, Type[] argTypes, Object[] args) { ICommandContext context; { InternalSqlParser parser = new InternalSqlParser(twoWaySql, false); INode node = parser.Parse(); InternalCommandContextCreator creator = new InternalCommandContextCreator(argNames, argTypes); context = creator.CreateCommandContext(args); node.Accept(context); } String preparedSql = context.Sql; return(InternalBindVariableUtil.GetCompleteSql(preparedSql, context.BindVariables)); }
protected virtual String GetCompleteSql(Object[] args) { return(InternalBindVariableUtil.GetCompleteSql(_sql, args)); }