コード例 #1
0
        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();
            }
        }
コード例 #2
0
 public WordListService()
 {
     _wordList = new List <string>();
     _msg      = new MsgEnginner();
     _context  = new ConsEfDbContext();
 }