EntitySet<TEntity> EntitySet<TEntity> EntitySet<TEntity> EntitySet<TEntity> Constructors

定义

重载

EntitySet<TEntity>() EntitySet<TEntity>() EntitySet<TEntity>()

初始化 EntitySet<TEntity> 类的新实例。Initializes a new instance of the EntitySet<TEntity> class.

EntitySet<TEntity>(Action<TEntity>, Action<TEntity>) EntitySet<TEntity>(Action<TEntity>, Action<TEntity>) EntitySet<TEntity>(Action<TEntity>, Action<TEntity>) EntitySet<TEntity>(Action<TEntity>, Action<TEntity>)

在为添加和移除操作提供处理程序的同时,初始化 EntitySet<TEntity> 类的新实例。Initializes a new instance of the EntitySet<TEntity> class while supplying handlers for add and remove operations.

EntitySet<TEntity>() EntitySet<TEntity>() EntitySet<TEntity>()

初始化 EntitySet<TEntity> 类的新实例。Initializes a new instance of the EntitySet<TEntity> class.

public:
 EntitySet();
public EntitySet ();
Public Sub New ()

EntitySet<TEntity>(Action<TEntity>, Action<TEntity>) EntitySet<TEntity>(Action<TEntity>, Action<TEntity>) EntitySet<TEntity>(Action<TEntity>, Action<TEntity>) EntitySet<TEntity>(Action<TEntity>, Action<TEntity>)

在为添加和移除操作提供处理程序的同时,初始化 EntitySet<TEntity> 类的新实例。Initializes a new instance of the EntitySet<TEntity> class while supplying handlers for add and remove operations.

public:
 EntitySet(Action<TEntity> ^ onAdd, Action<TEntity> ^ onRemove);
public EntitySet (Action<TEntity> onAdd, Action<TEntity> onRemove);
new System.Data.Linq.EntitySet<'Entity (requires 'Entity : null)> : Action<'Entity (requires 'Entity : null)> * Action<'Entity (requires 'Entity : null)> -> System.Data.Linq.EntitySet<'Entity (requires 'Entity : null)>
Public Sub New (onAdd As Action(Of TEntity), onRemove As Action(Of TEntity))

参数

onAdd
Action<TEntity>

Add(TEntity) 的委托。Delegate for Add(TEntity).

onRemove
Action<TEntity>

Remove(TEntity) 的委托。Delegate for Remove(TEntity).

适用于