Created
January 14, 2015 23:20
-
-
Save pmrozik/dc8c6a80839bf92f4909 to your computer and use it in GitHub Desktop.
This file contains 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
public static void insertWord(string word) | |
{ | |
OperationDataContext odContext = new OperationDataContext(); | |
english_dictionary dictionary = new english_dictionary(); | |
dictionary.word = word; | |
dictionary.wordID = wordID++; | |
odContext.english_dictionaries.InsertOnSubmit(dictionary); | |
odContext.SubmitChanges(); | |
Console.WriteLine("{0} added to database.", word); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment