public void Clear() { _wL = new WordList(); var wList = _context.wordLists.ToList(); foreach (WordList Wl in wList) { _msg = new MsgEnginner(); _context.wordLists.RemoveRange(Wl); Console.WriteLine(_msg.ClearWordLis()); _context.SaveChanges(); } }
public WordListService() { _wordList = new List <string>(); _msg = new MsgEnginner(); _context = new ConsEfDbContext(); }