ArcGISCompare.msAccProcs.LoadDataLoss C# (CSharp) Method

LoadDataLoss() public method

public LoadDataLoss ( AttributeMappingData theAMap, int ser ) : System.Boolean
theAMap AttributeMappingData
ser int
return System.Boolean
        public Boolean LoadDataLoss(AttributeMappingData theAMap, int ser)
        {
            OleDbCommand theCMD;
              OleDbDataReader theReader;
              ValueData theS, theD;
              String theSQL = "";
              int theOID;
              String srcC, destC, srcF, theMsg;
              //DataLossEntries theEMap;

              try
              {
            theSQL = "SELECT [sourceClass], [destinationClass], [sourceFieldName], [srcObjectID], [dataLoadError] FROM [DataLossProblems] WHERE [SerialNumber] = " + ser;
            theCMD = new OleDbCommand(theSQL, theConn);

            checkOpen();
            theReader = theCMD.ExecuteReader(System.Data.CommandBehavior.CloseConnection);

            while (theReader.Read())
            {
              srcC = theReader.GetString(0);
              destC = theReader.GetString(1);
              srcF = theReader.GetString(2);
              theOID = theReader.GetInt32(3);
              theMsg = theReader.GetString(4);

              //theEMap = new DataLossEntries(ser, srcC, destC, srcF, theOID, theMsg);

              //theAMap.AddDataLoss(theEMap);
            }

            return true;
              }
              catch (Exception ex) { return false; }
        }