ChangeSet Class

WCF RIA Services

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Represents a set of changes to be processed by a DomainService.


Namespace:  System.ServiceModel.DomainServices.Server
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

public sealed class ChangeSet

The ChangeSet type exposes the following members.

Public methodChangeSetInitializes a new instance of the ChangeSet class.

Public propertyChangeSetEntriesGets the collection of ChangeSetEntry objects that this ChangeSet represents.
Public propertyHasErrorGets a value that indicates whether any of the ChangeSetEntry objects has an error.

Public methodAssociate<TEntity, TStoreEntity>
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetAssociatedChanges<TEntity, TResult>(TEntity, Expression<Func<T, TResult>>)
Public methodGetAssociatedChanges<TEntity, TResult>(TEntity, Expression<Func<T, TResult>>, Boolean)
Public methodGetAssociatedEntities<TEntity, TStoreEntity>Gets the collection of presentation model entities associated with the specified data store client entity.
Public methodGetChangeOperationGets the ChangeOperation for the specified member of this ChangeSet.
Public methodGetHashCode (Inherited from Object.)
Public methodGetOriginal<TEntity>Gets the original unmodified entity for the specified entity.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReplace<TEntity>Replaces the specified client entity with the specified server entity in all ChangeSetEntry objects that are contained in the ChangeSet.
Public methodToString (Inherited from Object.)

public void UpdateCustomer(Customer currentCustomer)
    this.ObjectContext.Customers.AttachAsModified(currentCustomer, this.ChangeSet.GetOriginal(currentCustomer));

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.