LocalView<TEntity>.ToBindingList Method

Definition

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

public virtual System.ComponentModel.BindingList<TEntity> ToBindingList ();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")]
public virtual System.ComponentModel.BindingList<TEntity> ToBindingList ();
abstract member ToBindingList : unit -> System.ComponentModel.BindingList<'Entity (requires 'Entity : null)>
override this.ToBindingList : unit -> System.ComponentModel.BindingList<'Entity (requires 'Entity : null)>
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")>]
abstract member ToBindingList : unit -> System.ComponentModel.BindingList<'Entity (requires 'Entity : null)>
override this.ToBindingList : unit -> System.ComponentModel.BindingList<'Entity (requires 'Entity : null)>
Public Overridable Function ToBindingList () As BindingList(Of TEntity)

Returns

BindingList<TEntity>

The binding list.

Attributes

Remarks

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

Applies to