| Visual Basic (Declaration) | |
|---|---|
Public Class ObjectSet(Of T) Implements ICustomPersister | |
| Visual Basic (Usage) | |
|---|---|
| |
| C# | |
|---|---|
public class ObjectSet<T> : ICustomPersister | |
| Managed Extensions for C++ | |
|---|---|
public __gc class ObjectSet<T> : public ICustomPersister | |
| C++/CLI | |
|---|---|
generic<typename T> public ref class ObjectSet : public ICustomPersister | |
- T
| C# | |
|---|---|
[Persistent("USER")] | |
The ObjectSet, which is an in-memory cache of persistent objects retrieved from the storage, is a major component of the framework. It consists of a collection that contains objects of the type specified as generic argument.
The class contains also a list of removed items. Use Remove or RemoveAt to mark objects for deletion. They are moved to the RemovedList and deleted the next time the ObjectSet is saved. Objects on the RemovedList can also be moved back to the ObjectSet (or removed from the RemovedList) if you won't delete them.
The changes on the ObjectSet are saved using the PersistChanges method of the ObjectContext.
System.Object
Chili.Opf3.ObjectSet
Requirements
Namespace: Chili.Opf3
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Chili.Opf3 (in Chili.Opf3.dll)