Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (17 sloc) 1.03 KB

Session: How to Evict Single Entity from a Session

We can clear all session operations and stop tracking of all entities by the using Clear method, but sometimes there is need to only to do a cleanup only for one entity. For this purpose Evict was introduced.


{CODE evict_1@ClientApi\Session\HowTo\Evict.cs /}

entity T Instance of an entity that will be evicted

Example I

{CODE evict_2@ClientApi\Session\HowTo\Evict.cs /}

Example II

{CODE evict_3@ClientApi\Session\HowTo\Evict.cs /}

Related articles


You can’t perform that action at this time.