public CollaborationSpaceRepository(IMoBContext context) { if (context != null) { _context = context; } }
private bool _disposedValue; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { _context.Dispose(); _context = null; } // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below. // TODO: set large fields to null. _disposedValue = true; } }
public CollaborationSpaceRepository() { _context = new MoBContext(); }
private bool _disposedValue; // To detect redundant calls #endregion Fields #region Constructors public CollaborationSpaceRepository(IMoBContext context) { if (context != null) _context = context; }
protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { _context.Dispose(); _context = null; } // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below. // TODO: set large fields to null. _disposedValue = true; } }