The following tables list the members exposed by ObjectContext.
| Name | Description | |
|---|---|---|
| ObjectContext Constructor | Creates a new instance of the ObjectContext Class. |
| Name | Description | |
|---|---|---|
| CacheManager | Specifies the class that implements the ICacheManager interface. | |
| ConcurrencyManager | Specifies the class that implements the IConcurrencyManager interface. | |
| Factory | Gets the ObjectContextFactory that allows creating ObjectContext instances by applying a policy. Such as creating a new ObjectContext instance on each call (ASP.NET applications) or for each different thread (Windows applications). | |
| PersistentFactory | Gets or sets a class implementing the IPersistentFactory interface. | |
| PersistentQueriesProviders | Gets the list of IPersistentQueriesProviders. An IPersistentQueriesProvider allows to specify the insert, update and delete query statements directly. The framework is going to use these statements (instead of the automatically created ones) when doing inserts, updates and deletes on persistent objects. | |
| Storage | Returns the class that implements the IStorage interface. |
| Name | Description | |
|---|---|---|
| Commit | Commits the current transaction. | |
| CreateObjRef | (Inherited from System.MarshalByRefObject) | |
| GetLifetimeService | (Inherited from System.MarshalByRefObject) | |
| GetObject | Overloaded. | |
| GetObjectInfo | Returns the ObjectInfo object of the given persistent object. The container holds information about the state of the object. | |
| GetObjectList | Overloaded. | |
| GetObjectReader | Overloaded. | |
| Generic GetObjectSearcher | Returns a new generic ObjectSearcher class. | |
| GetObjectSet | Overloaded. | |
| InitializeLifetimeService | (Inherited from System.MarshalByRefObject) | |
| IsModified | Returns whether the object has been modified since the last operation. | |
| MarkForDeletion | Marks a persistent object for deletion. | |
| PersistChanges | Overloaded. | |
| Reload | Overloaded. | |
| Rollback | Rolls the current transaction back. | |
| SetObjectState | Sets the state of the persistent object to the given ObjectStates. | |
| StartTransaction | Overloaded. |
| Name | Description | |
|---|---|---|
| Dispose | Disposes the instance of the ObjectContext. | |
| Finalize | Overridden. Destructs a new instance of the ObjectContext Class. | |
| MemberwiseClone | Overloaded. (Inherited from System.MarshalByRefObject) | |
| OnDeleted | Invoked after an object is deleted from the storage. | |
| OnDeleting | Invoked before an object is deleted in the storage. | |
| OnInserted | Invoked after an object is inserted into the storage. | |
| OnInserting | Invoked before an object is inserted into the storage. | |
| OnLoaded | Invoked after an object is loaded from the storage. | |
| OnLoading | Invokes the event that is fired before an object has been loaded from the storage. | |
| OnMarkedForDeletion | Invoked after an object is marked for deletion in the storage. | |
| OnMarkingForDeletion | Invoked before an object is marked for deletion in the storage. | |
| OnPersisting | Invoked before an object is persisted in the storage. | |
| OnUpdated | Invoked after an object is updated in the storage. | |
| OnUpdating | Invoked before an object is updated in the storage. |
| Name | Description | |
|---|---|---|
| Deleted | Event fired after an object is deleted. | |
| Deleting | Event fired before an object is deleted. | |
| Inserted | Event fired after an object is inserted. | |
| Inserting | Event fired before an object is inserted. | |
| Loaded | Event fired after an object is loaded. | |
| Loading | Event fired before an object is loaded. The persistent is populated after this event has been fired! | |
| MarkedForDeletion | Event fired after an object is marked for deletion. | |
| MarkingForDeletion | Event fired before an object is marked for deletion. | |
| Persisting | Event fired before an object is persisted (inserted, updated or deleted). | |
| Updated | Event fired after an object is updated. | |
| Updating | Event fired before an object is updated. |