public void Dispose() { if (Db != null) { Db.Dispose(); } if (DbActions != null) { DbActions.Clear(); DbActions = null; } }