Наследование: System.Data.Linq.DataContext
Пример #1
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;
       }
 }
Пример #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);
            }
        }