共用方式為


LocalView<TEntity>.ToBindingList 方法

定義

BindingList<T>傳回與這個集合保持同步的實作。 針對 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)

傳回

BindingList<TEntity>

繫結清單。

屬性

備註

如需詳細資訊和範例,請參閱 EF Core 中追蹤實體的本機檢視

適用於