public void DropSession() { if (Transaction != null && Transaction.IsActive) { Transaction.Rollback(); Transaction.Dispose(); } Session?.Dispose(); }