Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void putWords(HashSet<string> words)
- {
- using (qWordlistDataContext lh = new qWordlistDataContext())
- {
- foreach (string s in words)
- lh.words.InsertOnSubmit(new word() { word1 = s });
- // Submit the change to the database.
- try
- {
- lh.SubmitChanges();
- }
- catch (Exception e)
- {
- Console.WriteLine(e);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement