private void lnkInsertFromCsv_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var csvImporter = new Business.CsvImporter(); // !!! Clear tables var db = DB.Database.GetDatabase(); DB.Database.ClearTables(db); csvImporter.Import(@"C:\Users\xavier.pena\Documents\e-dric\Projects\git-xavierpenya\data\data1.csv"); csvImporter.Import(@"C:\Users\xavier.pena\Documents\e-dric\Projects\git-xavierpenya\data\data2.csv"); MessageBox.Show("Done."); }
private void lnkInsertFromCsv_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var csvImporter = new Business.CsvImporter(); // !!! Clear tables var db = DB.Database.GetDatabase(); DB.Database.ClearTables(db); csvImporter.Import(@"C:\Users\xavier.pena\Documents\e-dric\Projects\git-xavierpenya\data\data1.csv"); csvImporter.Import(@"C:\Users\xavier.pena\Documents\e-dric\Projects\git-xavierpenya\data\data2.csv"); MessageBox.Show("Done."); }