In the unlikely event a Linq query is used after disposing of its session and having it garbage collected, the session may get resurrected by the query provider, just to immediately fail afterward due to the session being closed. It may also not be resurrected and yield null instead, causing a null reference exception in such case.
In the unlikely event a Linq query is used after disposing of its session and having it garbage collected, the session may get resurrected by the query provider, just to immediately fail afterward due to the session being closed.
It may also not be resurrected and yield
null
instead, causing a null reference exception in such case.