LocalView<TEntity>.ToBindingList Method

Definition

Returns a BindingList<T> implementation that stays in sync with this collection. Use this for WinForms data binding.

C#
public virtual System.ComponentModel.BindingList<TEntity> ToBindingList ();
C#
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")]
public virtual System.ComponentModel.BindingList<TEntity> ToBindingList ();

Returns

BindingList<TEntity>

The binding list.

Attributes

Remarks

See Local views of tracked entities in EF Core for more information and examples.

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