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