EntitySet<TEntity> Constructors

Definition

Initializes a new instance of the EntitySet<TEntity> class.

Overloads

EntitySet<TEntity>()

Initializes a new instance of the EntitySet<TEntity> class.

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

Initializes a new instance of the EntitySet<TEntity> class while supplying handlers for add and remove operations.

EntitySet<TEntity>()

Initializes a new instance of the EntitySet<TEntity> class.

C#
public EntitySet();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

Initializes a new instance of the EntitySet<TEntity> class while supplying handlers for add and remove operations.

C#
public EntitySet(Action<TEntity> onAdd, Action<TEntity> onRemove);

Parameters

onAdd
Action<TEntity>

Delegate for Add(TEntity).

onRemove
Action<TEntity>

Delegate for Remove(TEntity).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1