ObjectSet<TEntity>.Attach Method (TEntity)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 void Attach(
	TEntity entity
)

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: