Export (0) Print
Expand All

DataContext.ObjectTrackingEnabled property

Gets or sets a value that indicates whether changes in objects are tracked.

Namespace:  Microsoft.SharePoint.Linq
Assembly:  Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)

public bool ObjectTrackingEnabled { get; set; }

Property value

Type: System.Boolean
true, if changes are tracked; false otherwise.

Changes cannot be persisted to the content database if this property is false.

For best performance with queries, set ObjectTrackingEnabled to false.

Show:
© 2014 Microsoft