private static List<Word> GetWordListByQuery(string query) { var queryResult = SQLiteHelper.ExecuteDataTable(query); return queryResult.AsEnumerable() .Select(l => { var word = new Word(); word.LoadFromDataTable(l); return word; }) .ToList(); }
private static List<Word> GetWordListByQuery(string query) { var queryResult = SQLiteHelper.ExecuteDataTable(query); return queryResult.AsEnumerable() .Select(l => { var word = new Word(); word.LoadFromDataTable(l); return word; }) .ToList(); }