Esempio n. 1
0
        public void UpdateWords(List<string> words)
        {
            SpellCheckerDataBaseDataContext db = new SpellCheckerDataBaseDataContext();
            db.ExecuteCommand("DELETE FROM Word");

            foreach (string word in words)
            {
                Word newRecord = new Word();
                newRecord.@string = word;
                db.Words.InsertOnSubmit(newRecord);
            }
            db.SubmitChanges();
        }
 partial void UpdateWord(Word instance);
 partial void DeleteWord(Word instance);
 partial void InsertWord(Word instance);