ComponentOne Data Source for Entity Framework
C1.Data Namespace / ClientCacheBase Class

In This Topic
    ClientCacheBase Class Members
    In This Topic

    The following tables list the members exposed by ClientCacheBase.

    Public Methods
    Public MethodUsed to group massive changes to entities and to allow manual explicit changes of entity states.  
    Public MethodForces unused memory to be released, unused entities to be detached from the context. It is usually done automatically, so programmers rarely need to call this method in code.  
    Public MethodClears client-side cache entirely. Call this method if you want to make sure that following queries will fetch fresh data from the server.  
    Public MethodCreates a ClientScope that defines a scope of data access.  
    Public MethodCreates a C1.Data.Transactions.ClientTransaction that allows you to easily cancel changes made in transaction scope.  
    Public MethodRefreshes data in all C1DataSource controls connected to this ClientCacheBase.  
    Public MethodReverts all pending changes for this ClientCacheBase. It is recommended to call this method instead of %System.Data.Objects.ObjectContext.Refresh(System.Data.Objects.RefreshMode, object)%.  
    Public MethodPersists all changes to the server. It is recommended to call this method instead of System.Data.Objects.ObjectContext.SaveChanges().  
    See Also