ObjectSet<TEntity>::Attach Method (TEntity)

.NET Framework (current version)
 

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

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

public:
virtual void Attach(
	TEntity entity
) sealed

Parameters

entity
Type: TEntity

The object to attach.

This method is a wrapper around the AttachTo method.

.NET Framework
Available since 4.0
Return to top
Show: