Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (18 sloc) 1.22 KB

Session : How to Ignore Entity Changes

In order to mark an entity as one that should be ignored for change tracking purposes, use the IgnoreChangesFor method from the Advanced session operations.

Unlike the Evict method, performing another Load of that entity won't create a call to the server.

The entity will still take part in the session, but will be ignored for SaveChanges.

Syntax

{CODE ignore_changes_1@ClientApi\Session\HowTo\IgnoreChanges.cs /}

Parameters
entity object Instance of entity for which changes will be ignored.

Example

{CODE ignore_changes_2@ClientApi\Session\HowTo\IgnoreChanges.cs /}

Related Articles

Session