//得到sql语句;
public virtual string GetSqlStatement(string statementName, object paramObject)
{
ISqlMapper ISQLMapper = MapperFactory.Get();
IMappedStatement IMstatement = ISQLMapper.GetMappedStatement(statementName);
if (!ISQLMapper.IsSessionStarted)
{
ISQLMapper.OpenConnection();
}
RequestScope RSscope = IMstatement.Statement.Sql.GetRequestScope(IMstatement, paramObject, ISQLMapper.LocalSession);
return RSscope.PreparedStatement.PreparedSql;
}