LinqConnect Documentation
Devart.Data.Linq Namespace / DataContext Class / ObjectTrackingEnabled Property

In This Topic
    ObjectTrackingEnabled Property
    In This Topic
    Instructs the framework to track the original value and object identity for this DataContext.
    Syntax
    'Declaration
     
    Public Property ObjectTrackingEnabled As Boolean
    public bool ObjectTrackingEnabled {get; set;}
    Remarks
    Setting this property to false improves performance at retrieval time, because there are fewer items to track.

    An exception is thrown:

    • If the property is set to false after a query has been executed.
      For more information, see the Valid Modes section in DataContext.
    • If the property is set to false and SubmitChanges is called.
    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