8,757
社区成员
发帖
与我相关
我的任务
分享
//方式一
//dataGrid1.ItemsSource = tc.Load<Test_Chart>(query).Entities;
//方式二
//dataGrid1.ItemsSource = tc.Test_Charts;
//tc.Load(query);
//方式三
//tc.Load(query, lo => { List<Test_Chart> list = new List<Test_Chart>(lo.Entities); dataGrid1.ItemsSource = list; }, null);
//方式四
tc.Load(query, lo => dataGrid1.ItemsSource = lo.Entities.ToList<Test_Chart>(), null);