|Visual Basic (Declaration)| Public Class ObjectContext Inherits
MarshalByRefObject |Visual Basic (Usage)||Copy Code| public
class ObjectContext : MarshalByRefObject |Managed Extensions for
C++| public __gc class ObjectContext : public MarshalByRefObject
public ref class ObjectContext : public MarshalByRefObject
Thread Safety: Any public static members of this type are thread
safe. Any instance members are not guaranteed to be thread safe.
This class is the main point when loading, saving and deleting
persistent objects to/from the storage. Whenever objects are
loaded from the storage you need (don't use directly the
storage) to request them by using an ObjectContext class. The
class contains specialized methods (all generic) allowing the
user to get single objects, a list of objects or an ObjectSet
from the storage. Each object can also be marked for deletion by
using the MarkForDeletion method of the ObjectContext. An object
that has been marked for deletion is deleted the next time the
changes are persiste