/// ///====================================================================== /// /// <summary> /// 得到运行时ibatis.net动态生成的SQL /// </summary> /// <param name="sqlMapper"></param> /// <param name="statementName"></param> /// <param name="paramObject"></param> /// <returns></returns> public virtual string GetRuntimeSql(string statementName, object paramObject) { string result = string.Empty; try { _daoManager.OpenConnection(); result = dao.GetRuntimeSql(statementName, paramObject); } catch (Exception e) { System.Diagnostics.Debug.Write(e.Message); } finally { _daoManager.CloseConnection(); } return(result); }
/// <summary> /// 得到运行时ibatis.net动态生成的SQL /// </summary> /// <param name="sqlMapper"></param> /// <param name="statementName"></param> /// <param name="paramObject"></param> /// <returns></returns> public virtual string GetRuntimeSql(string statementName, object paramObject) { return(dao.GetRuntimeSql(statementName, paramObject)); }