Inheritance: System.Data.Linq.DataContext
 private List<string> ListWords(String text)
 {
     List<string> result = null;
     DictionaryDataContext connect = new DictionaryDataContext();
     result = (from cust in connect.Words
               where cust.code == text
               select cust.word).ToList<string>();
     if (result.Count > 0)
               return result;
     else
       {   
             result = new List<string>();
             result.Add("");
             return result;
       }
 }
Beispiel #2
0
        private List <string> ListWords(String text)
        {
            List <string>         result  = null;
            DictionaryDataContext connect = new DictionaryDataContext();

            result = (from cust in connect.Words
                      where cust.code == text
                      select cust.word).ToList <string>();
            if (result.Count > 0)
            {
                return(result);
            }
            else
            {
                result = new List <string>();
                result.Add("");
                return(result);
            }
        }