LocalView<TEntity>.IListSource.GetList Method

Definition

This method is called by data binding frameworks when attempting to data bind directly to a LocalView<TEntity>.

C#
System.Collections.IList 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

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