CSDataBase.cDataBase.pOpenRs C# (CSharp) Method

pOpenRs() private method

private pOpenRs ( string sqlstmt, System.Data.Common.DbDataReader &ors, string function, string module, string title, eErrorLevel level, bool showError ) : bool
sqlstmt string
ors System.Data.Common.DbDataReader
function string
module string
title string
level eErrorLevel
showError bool
return bool
        private bool pOpenRs(string sqlstmt,
                             out DbDataReader ors,
                             string function,
                             string module,
                             string title,
                             eErrorLevel level,
                             bool showError)
        {
            ors = null;
            try
            {
                DbCommand ocmd = createCommand(sqlstmt);
                ors = ocmd.ExecuteReader();
                return true;
            }
            catch (Exception ex)
            {
                if (showError)
                {
                    cError.mngError(ex, "openRs for " + module + "." + function, c_module, "sentencia: " + sqlstmt);
                }
                return false;
            }
        }