ITable.Attach Method

 

Allows deserialized entities to be associated with a new instance of a DataContext so that they can be updated or deleted from the database.

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

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodITable.Attach(Object)

Attaches an entity to the DataContext in an unmodified state.

System_CAPS_pubinterfaceSystem_CAPS_privmethodITable.Attach(Object, Boolean)

Attaches all entities of a collection to the DataContext in either a modified or unmodified state.

System_CAPS_pubinterfaceSystem_CAPS_privmethodITable.Attach(Object, Object)

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

Return to top
Show: