Export (0) Print
Expand All

EntityContainer 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 cache of entities in the form of a collection of EntitySet objects.

System.Object
  System.ServiceModel.DomainServices.Client.EntityContainer

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

public abstract class EntityContainer : IRevertibleChangeTracking, 
	IChangeTracking, INotifyPropertyChanged

The EntityContainer type exposes the following members.

  NameDescription
Protected methodEntityContainerInitializes a new instance of the EntityContainer class.
Top

  NameDescription
Public propertyEntitySetsGets the collection of EntitySet objects in this EntityContainer.
Public propertyHasChangesGets a value indicating whether this EntityContainer currently has any pending changes.
Top

  NameDescription
Protected methodAcceptChangesAccepts all changes that have been made to entities or the EntitySet objects in this container.
Public methodAddReferenceAdds a reference to an external EntitySet.
Public methodClearClears the contents of all EntitySet objects in this container.
Protected methodCreateEntitySet<TEntity>()Creates a new EntitySet in this container for the specified entity type.
Protected methodCreateEntitySet<TEntity>(EntitySetOperations)Create an EntitySet in this container for the specified EntitySetOperations.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetChangesReturns an EntityChangeSet containing the current set of pending changes.
Public methodGetEntitySet(Type)Gets the EntitySet for the specified Entity type.
Public methodGetEntitySet<TEntity>()Gets the EntitySet for the specified Entity type.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodLoadEntities(IEnumerable)Loads the specified collection of entities into this EntityContainer.
Public methodLoadEntities(IEnumerable, LoadBehavior)Loads the specified collection of entities into this EntityContainer using the specified load behavior.
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodRaisePropertyChangedRaises the PropertyChanged event for the specified property.
Protected methodRejectChangesReverts all changes that have been made to the entities or the EntitySet objects in this container.
Public methodToString (Inherited from Object.)
Public methodTryGetEntitySetTries to get the entity set for the specified Entity type.
Top

  NameDescription
Public eventPropertyChangedOccurs when a property has changed.
Top

  NameDescription
Explicit interface implemetationPrivate methodIChangeTracking.AcceptChangesResets the object’s state to unchanged by accepting the modifications.
Explicit interface implemetationPrivate propertyIChangeTracking.IsChangedGets the object's changed status.
Explicit interface implemetationPrivate methodIRevertibleChangeTracking.RejectChangesResets the object’s state to unchanged by rejecting the modifications.
Top

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