Export (0) Print
Expand All

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.

System.Object
  System.ServiceModel.DomainServices.Server.ChangeSet

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.

  NameDescription
Public methodChangeSetInitializes a new instance of the ChangeSet class.
Top

  NameDescription
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.
Top

  NameDescription
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.)
Top

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.
Show:
© 2014 Microsoft