public void Dispose() { if (context != null) { context.Dispose(); } }
/// <summary> /// The bulk of the clean-up code is implemented in Dispose(bool). /// </summary> /// <param name="disposing">Disposing parameter.</param> protected virtual void Dispose(bool disposing) { if (!disposing) { return; } if (users != null) { users.Dispose(); } if (databaseContext != null) { databaseContext.Dispose(); } GC.SuppressFinalize(this); }