/// <summary> /// Executes the given DbCommand and returns the result. /// If a DbException is raised and a logger class had been provided, /// the method will attempt to Log a debug text version of the dbCommand /// that is backend specific or just log the exception. /// In either case, the exception will be thrown. /// </summary> /// <param name="dbCommand">Database Command Object to execute.</param> /// <returns>Returns object.</returns> public object ExecuteScalar(DbCommand dbCommand) { return(_daMgr.ExecuteScalar(dbCommand, dbCommand.Transaction, null)); }