Aru*_*run 0 c# linq dictionary windows-phone-7 windows-phone
在windows phone中,我在LINQ中检索数据库中的表作为字典.我的字典是这样的
Dictionary<int, StudentTable>
Run Code Online (Sandbox Code Playgroud)
我从LINQ中检索了表格
var studentDictionary = studContext.StudentList.Select(p => new { p.RollNo, p }).AsEnumerable().ToDictionary(kvp => kvp.RollNo, kvp => kvp);
Run Code Online (Sandbox Code Playgroud)
但是我希望将studentDictionary中的所有值都作为一个
List<StudentTable>
Run Code Online (Sandbox Code Playgroud)
我知道可以通过使用for循环将每个字典值添加到列表中.如何在没有循环的情况下完成此操作.?除了循环之外还有其他更好的方法吗?
谢谢