public 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.word1).ToList<string>(); return result; }
public 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.word1).ToList <string>(); return(result); }
public string word(String text) { DictionaryDataContext connect = new DictionaryDataContext(); List<string> result = (from cust in connect.Words where cust.code == text select cust.word1).ToList<string>(); if (result.Count > 0) return result[0]; else return ""; }
public string word(String text) { DictionaryDataContext connect = new DictionaryDataContext(); List <string> result = (from cust in connect.Words where cust.code == text select cust.word1).ToList <string>(); if (result.Count > 0) { return(result[0]); } else { return(""); } }