ArcGISCompare.msAccProcs.WriteValueMapping C# (CSharp) Method

WriteValueMapping() public method

public WriteValueMapping ( int Serial, ValueMappingData theV ) : System.Boolean
Serial int
theV ValueMappingData
return System.Boolean
        public Boolean WriteValueMapping(int Serial, ValueMappingData theV)
        {
            OleDbCommand theCMD;
              String theSQL = "";

              try
              {
            checkOpen();
            theSQL = "INSERT INTO [ValueMappings] ([serialNumber], [srcFieldName], [destFieldName], [srcEnumName], [destEnumName], [sourceValue], [destinationValue]) VALUES (" + Serial + ", '" + theV.srcAtt + "', '" + theV.destAtt + "', '" + theV.srcEnum + "', '" + theV.destEnum + "', '" + theV.srcV + "', '" + theV.destV + "')";
            theCMD = new OleDbCommand(theSQL, theConn);
            theCMD.ExecuteNonQuery();
            return true;
              }
              catch (Exception ex)
              {
            return false;
              }
        }