语言

DbQuery.IListSource.GetList 方法

定义

引发一个异常,指示不支持直接绑定到存储查询。 而是使用数据填充 DbSet,例如,使用 Load 扩展方法,然后绑定到本地数据。 对于WPF绑定到 DbSet.Local。 对于Windows 窗体绑定到 DbSet.Local.ToBindingList()。

System.Collections.IList IListSource.GetList();
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
System.Collections.IList IListSource.GetList();
Function GetList () As IList Implements IListSource.GetList

返回

永不返回;始终引发。

实现

特性

适用于