Skip to content

Instantly share code, notes, and snippets.

@talkingdotnet
Created February 27, 2018 05:59
Show Gist options
  • Save talkingdotnet/b3635551102f9b72015df60887fcf7ad to your computer and use it in GitHub Desktop.
Save talkingdotnet/b3635551102f9b72015df60887fcf7ad to your computer and use it in GitHub Desktop.
private void TransferData(DataSet ds)
{
try
{
DisableForeignKey(true);
if (ds != null)
{
foreach (DataTable dt in ds.Tables)
{
Populate(dt, dt.TableName);
}
}
DisableForeignKey(false);
}
catch (Exception ex)
{
WriteToConsole("Data Export Failed: " + ex.ToString());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment