public void Dispose() { if (_wasEnabled) { _session.EnableCache(true); } }
public CacheDisableToken(EntitySession session) { _session = session; _wasEnabled = session.CacheEnabled; if (_wasEnabled) { session.EnableCache(false); } }
public void Dispose() { if (_wasEnabled) { _session.EnableCache(true); } }
public CacheDisableToken(EntitySession session) { _session = session; _wasEnabled = session.CacheEnabled; if (_wasEnabled) { session.EnableCache(false); } }