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 中跟踪实体的本地视图

适用于