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;
}
}