LocalView<TEntity>.IListSource.GetList Method
Definition
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
Returns
Never returns, always throws an exception.
Implements
Exceptions
Always thrown.
Remarks
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.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för