LocalView<TEntity>.IListSource.GetList Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method is called by data binding frameworks when attempting to data bind directly to a LocalView<TEntity>.
System.Collections.IList IListSource.GetList ();
abstract member System.ComponentModel.IListSource.GetList : unit -> System.Collections.IList
override this.System.ComponentModel.IListSource.GetList : unit -> System.Collections.IList
Function GetList () As IList Implements IListSource.GetList
Never returns, always throws an exception.
Always thrown.
This implementation always throws an exception as LocalView<TEntity> does not maintain an ordered list with indexes. Instead call ToObservableCollection() for WPF binding, or ToBindingList() for WinForms.
Product | Versions |
---|---|
Entity Framework Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: