ComponentOne Data Source for Entity Framework
C1.Data.Entities Namespace / EntityClientCache Class
Properties Methods

In This Topic
    EntityClientCache Class Members
    In This Topic

    The following tables list the members exposed by EntityClientCache.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public Property  
    Public PropertyThe ObjectContext through which EntityClientCache accesses the data.  
    Top
    Public Methods
     NameDescription
    Public MethodAccepts all changes made to entities in the ObjectContext.  
    Public MethodUsed to group massive changes to entities and to allow manual explicit changes of entity states. (Inherited from C1.Data.ClientCacheBase)
    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. (Inherited from C1.Data.ClientCacheBase)
    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. (Inherited from C1.Data.ClientCacheBase)
    Public MethodCreates an Entity Framework-specific client scope.  
    Public MethodCreates a C1.Data.Transactions.ClientTransaction that allows you to easily cancel changes made in transaction scope. (Inherited from C1.Data.ClientCacheBase)
    Public Methodstatic (Shared in Visual Basic)Returns the default EntityClientCache for a given contextType.  
    Public MethodRefreshes data in all C1DataSource controls connected to this ClientCacheBase. (Inherited from C1.Data.ClientCacheBase)
    Public Methodstatic (Shared in Visual Basic)Overloaded. Registers an ObjectContext as a default for C1DataSource controls for a given context type.  
    Public MethodReverts all pending changes for this C1.Data.ClientCacheBase. It is recommended to call this method instead of %System.Data.Objects.ObjectContext.Refresh(System.Data.Objects.RefreshMode, object)%. (Inherited from C1.Data.ClientCacheBase)
    Public MethodPersists all changes to the server. It is recommended to call this method instead of System.Data.Objects.ObjectContext.SaveChanges(). (Inherited from C1.Data.ClientCacheBase)
    Top
    See Also