[]
        
(Showing Draft Content)

C1.Data.Entities.EntityClientCache

EntityClientCache Class

Represents a client-side cache specific to Entity Framework.

Inheritance
EntityClientCache
Namespace: C1.Data.Entities
Assembly: C1.Data.Entity.4.8.dll
Syntax
public class EntityClientCache : ClientCacheBase, IDisposable, INotifyPropertyChanged
Remarks

Usually, a single instance of this class is created on application startup and exists during the entire application lifetime, while each form, window, or user control works with data using a EntityClientScope created by calling the CreateScope() method.

Constructors

Name Description
EntityClientCache(ObjectContext)

Initializes a new instance of the EntityClientCache class.

EntityClientCache(DbContext)

Initializes a new instance of the EntityClientCache class.

Properties

Name Description
DbContext
ObjectContext

The ObjectContext through which EntityClientCache accesses the data.

Methods

Name Description
AcceptChanges()

Accepts all changes made to entities in the ObjectContext.

CreateScope()

Creates an Entity Framework-specific client scope.

GetDefault(Type)

Returns the default EntityClientCache for a given contextType.

RegisterContext(ObjectContext)

Registers an ObjectContext as a default for C1DataSource controls.

RegisterContext(ObjectContext, Type)

Registers an ObjectContext as a default for C1DataSource controls for a given contextType.

RegisterContext(DbContext)

Registers an DbContext as a default for C1DataSource controls.

RegisterContext(DbContext, Type)

Registers an DbContext as a default for C1DataSource controls for a given contextType.