Database Reference
In-Depth Information
AcquireConnection() method returns us the path as
a string.
pathToXmlFile
= (string)Connections.CustomerFile.AcquireConnection(Transaction);
}
public override void PreExecute()
{
// Call the base class
base.PreExecute();
// Make sure the file path exists
if (!File.Exists(pathToXmlFile))
{
string errorMessage = string.Format("Source
XML file does not exist. Path: {0}", pathToXmlFile);
bool bCancel;
ComponentMetaData.FireError(0,
ComponentMetaData.Name, errorMessage, string.Empty, 0,
out bCancel);
}
}
public override void CreateNewOutputRows()
{
// TODO - This is where we will load our XML
document
}
public override void ReleaseConnections()
{
// Call the base class
base.ReleaseConnections();
// Release our connection
Connections.CustomerFile.ReleaseConnection(pathToXmlFile);
}
}
Search WWH ::




Custom Search