[]
Represents a client-side cache specific to Entity Framework.
public class EntityClientCache : ClientCacheBase, IDisposable, INotifyPropertyChanged
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.
Name | Description |
---|---|
EntityClientCache(ObjectContext) | Initializes a new instance of the EntityClientCache class. |
EntityClientCache(DbContext) | Initializes a new instance of the EntityClientCache class. |
Name | Description |
---|---|
DbContext | |
ObjectContext | The ObjectContext through which EntityClientCache accesses the data. |
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 |
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 |
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 |