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.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
The EntityContainer type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | EntitySets | Gets the collection of EntitySet objects in this EntityContainer. |
![]() | HasChanges | Gets a value indicating whether this EntityContainer currently has any pending changes. |
| Name | Description | |
|---|---|---|
![]() | AcceptChanges | Accepts all changes that have been made to entities or the EntitySet objects in this container. |
![]() | AddReference | Adds a reference to an external EntitySet. |
![]() | Clear | Clears the contents of all EntitySet objects in this container. |
![]() | CreateEntitySet<TEntity>() | Creates a new EntitySet in this container for the specified entity type. |
![]() | CreateEntitySet<TEntity>(EntitySetOperations) | Create an EntitySet in this container for the specified EntitySetOperations. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetChanges | Returns an EntityChangeSet containing the current set of pending changes. |
![]() | GetEntitySet(Type) | Gets the EntitySet for the specified Entity type. |
![]() | GetEntitySet<TEntity>() | Gets the EntitySet for the specified Entity type. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | LoadEntities(IEnumerable) | Loads the specified collection of entities into this EntityContainer. |
![]() | LoadEntities(IEnumerable, LoadBehavior) | Loads the specified collection of entities into this EntityContainer using the specified load behavior. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | RaisePropertyChanged | Raises the PropertyChanged event for the specified property. |
![]() | RejectChanges | Reverts all changes that have been made to the entities or the EntitySet objects in this container. |
![]() | ToString | (Inherited from Object.) |
![]() | TryGetEntitySet | Tries to get the entity set for the specified Entity type. |
| Name | Description | |
|---|---|---|
![]() ![]() | IChangeTracking.AcceptChanges | Resets the object’s state to unchanged by accepting the modifications. |
![]() ![]() | IChangeTracking.IsChanged | Gets the object's changed status. |
![]() ![]() | IRevertibleChangeTracking.RejectChanges | Resets the object’s state to unchanged by rejecting the modifications. |
Show:

