ArcGISCompare.msAccProcs.WriteFeatureMapping C# (CSharp) Method

WriteFeatureMapping() public method

public WriteFeatureMapping ( FeatureMappingData theDMap ) : System.Boolean
theDMap FeatureMappingData
return System.Boolean
        public Boolean WriteFeatureMapping(FeatureMappingData theDMap)
        {
            OleDbCommand theCMD;
              String theSQL = "";

              try
              {
            checkOpen();
            theSQL = "INSERT INTO [FeatureMappings] ([SerialNumber], [sourceClass], [destinationClass], [sourceGeom], [destinationGeom], [featureCount], [geomTransform]) VALUES (" + theDMap.serialNumber + ", '" + theDMap.srcFC + "', '" + theDMap.destFC + "', " + Convert.ToInt32(theDMap.srcGeom) + ", " + Convert.ToInt32(theDMap.destGeom) + ", " + theDMap.featCount + ", " + theDMap.geomTransform + ")";
            theCMD = new OleDbCommand(theSQL, theConn);
            theCMD.ExecuteNonQuery();
            return true;
              }
              catch (Exception ex)
              {
            return false;
              }
        }