IManagedContext Interface |
Namespace: WeroSoft.Serialization
public interface IManagedContext
// Own partial of the generated context of the entity framework. public partial class PrimaryDatastoreContext : IManagedContext { // Implements the disposing event like it is defined in the interface IManagedContext. public event EventHandler Disposing = delegate { }; // Called on disposing the context. protected override void Dispose(Boolean disposing) { base.Dispose(disposing); // Raise the event to dispose the context Disposing(this, new EventArgs()); } }
The IManagedContext type exposes the following members.
Name | Description | |
---|---|---|
Disposing |
Declares the event which is raised on disposing the context.
| |
ObjectMaterialized |
Declares the event which is called on materialization the context.
| |
SavingChanges |
Declares the event which is raised on saving data within the context.
|