Back to Devexpress

Session.DropIdentityMap() Method

xpo-devexpress-dot-xpo-dot-session-6704db76.md

latest1.1 KB
Original Source

Session.DropIdentityMap() Method

Clears the Identity Map.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public void DropIdentityMap()
vb
Public Sub DropIdentityMap

Remarks

All the persistent objects loaded using the current session are stored in the Identity Map. The DropIdentityMap method invalidates the object references, enabling the garbage collector to free up the space which is occupied by the session object at a later time.

Calling the DropIdentityMap method has the same effect as reconnecting a session.

See Also

IdentityMapBehavior

Session Class

Session Members

DevExpress.Xpo Namespace