我正在看this教程。在15:40左右,发言者说像LINQ查询这样的东西不会创建像BindingListCollectionView
这样的丰富集合。我想也许这意味着更改不会被保存到数据库或其他东西。所以我尝试用为什么需要创建可观察的集合
var result = from cust in database.Customers
where cust.City == "Seattle"
select cust;
更换
var result = database.Customers.Execute(System.Data.Objects.MergeOption.AppendOnly);
,所有仍然正常工作。
我可以说“功能”不存在于“BindingListCollectionView”? – 2010-09-03 14:21:39
如果你想使用BindingListCollectionView,你可以把你的结果(这是一个IEnumerable)并将其放入一个新的BindingListCollectionView或ObservableCollection – 2010-09-03 14:55:17