예제 #1
0
        private bool RaiseMapColumn(object target, int colPos, string colName, out string newColName)
        {
            newColName = null;
            if (_customColumnMappableRecord != null)
            {
                bool   retVal      = false;
                string lnewColName = null;
                retVal = ChoFuncEx.RunWithIgnoreError(() => _customColumnMappableRecord.MapColumn(colPos, colName, out lnewColName), false);
                if (retVal)
                {
                    newColName = lnewColName;
                }
                return(retVal);
            }
            else if (Reader != null)
            {
                string lnewColName = null;
                bool   retVal      = ChoFuncEx.RunWithIgnoreError(() => Reader.RaiseMapColumn(colPos, colName, out lnewColName), false);
                if (retVal)
                {
                    newColName = lnewColName;
                }

                return(retVal);
            }
            return(false);
        }