void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { UtilityTools.ClearAllInstances(); this.DbContext = null; } disposedValue = true; } }