Created
February 27, 2018 05:59
-
-
Save talkingdotnet/b3635551102f9b72015df60887fcf7ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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