Table<'TEntity>.ITable.Attach Method (Object, Boolean)

 
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 all entities of a collection to the DataContext in either a modified or unmodified state.

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

private abstract Attach : 
        entity:Object *
        asModified:bool -> unit
private override Attach : 
        entity:Object *
        asModified:bool -> unit

Parameters

entity
Type: System.Object

The entity to be attached.

asModified
Type: System.Boolean

true to attach the entity as modified; false to attached the entity as unmodified.

This member is an explicit interface member implementation. It can be used only when the Table<'TEntity> instance is cast to an ITable interface.

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