ITable::Attach Method (Object^, Object^)

 

Attaches an entity to the DataContext in either a modified or unmodified state by specifying both the entity and its original state.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

void Attach(
	Object^ entity,
	Object^ original
)

Parameters

entity
Type: System::Object^

The entity to be attached.

original
Type: System::Object^

An instance of the same entity type with data members that contain the original values.

For more information about how to use this method, see Data Retrieval and CUD Operations in N-Tier Applications (LINQ to SQL).

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top
Show: