System.Data.Services.Client

Table A-2. System.Data.Services.Client SaveChangesOptions enumerators

Enum

Description

Batch

Changes will be sent in a single payload and will constitute an atomic unit of work

ContinueOnError

When multiple changes are sent, if an error occurs while saving one change, continue to attempt to save the other changes

None

No additional directions

ReplaceOnUpdate

Perform a Replace update instead of a Merge update; Merge updates only the values in the entity that is passed; Replace updates all properties, even if they are not in the passed entity

Table A-3. System.Data.Services.Client EntityStates enumerators

Enum

Description

Added

An entity was added since the last call to SaveChanges.

Deleted

An entity was deleted from the context. If SaveChanges is called, it will attempt to delete the data that the entity represents in the database.

Detached

An entity was detached from the context. This is not the same as Deleted. It simply flags the entity as removed from the context.

Modified

An entity was modified since the last call to SaveChanges.

Unchanged

No changes have occurred on the entity since the last call to SaveChanges.

Table A-4. System.Data.Services.Client MergeOption enumerators

Enumerator

Description

AppendOnly

Adds new entities, but existing entities and values will not be modified.

NoTracking

On retrieval, data is always refreshed from the server to the entity. No change tracking information is retained.

Overwrite Changes

On retrieval, current values are refreshed from the ...

Get Data-Driven Services with Silverlight 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.