Session: How to Clear a Session
To clear session state, to stop tracking entities and remove all pending commands, etc. the
clear method is used from the
advanced session operations.
Employee employee = new Employee();
session.saveChanges(); // nothing will hapen