LinqConnect Documentation
Devart.Data.Linq Namespace / ITable Interface / Attach Method / Attach(Object,Boolean) Method
The collection of entities.
true to attach the entities as modified.

In This Topic
    Attach(Object,Boolean) Method
    In This Topic
    Attaches all entities of a collection to the DataContext in either a modified or unmodified state.
    Syntax
    'Declaration
     
    Overloads Sub Attach( _
       ByVal entity As Object, _
       ByVal asModified As Boolean _
    ) 
    void Attach( 
       object entity,
       bool asModified
    )

    Parameters

    entity
    The collection of entities.
    asModified
    true to attach the entities as modified.
    Remarks
    For more information about how to use this method, see Data Retrieval and CUD Operations in N-Tier Applications (LINQ to SQL).
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also