ObjectSet<TEntity>.Attach Method (TEntity)

 

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

Namespace:   System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

public void Attach(
	TEntity entity
)

Parameters

entity
Type: TEntity

The object to attach.