Udostępnij przez


LocalView<TEntity>.ToBindingList Metoda

Definicja

Zwraca implementację BindingList<T> , która pozostaje zsynchronizowana z tą kolekcją. Użyj tego dla powiązania danych WinForms.

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)

Zwraca

BindingList<TEntity>

Lista powiązań.

Atrybuty

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Lokalne widoki śledzonych jednostek w programie EF Core .

Dotyczy