ObjectSet<TEntity>.Attach(TEntity) Method

Definition

Attaches an object or object graph to the object context in the current entity set.

public void Attach (TEntity entity);

Parameters

entity
TEntity

The object to attach.

Implements

Remarks

This method is a wrapper around the AttachTo method.

Applies to

Produkt Versjoner
.NET Framework 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

See also