예제 #1
0
 public CollaborationSpaceRepository(IMoBContext context)
 {
     if (context != null)
     {
         _context = context;
     }
 }
예제 #2
0
        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;
            }
        }
예제 #3
0
 public CollaborationSpaceRepository()
 {
     _context = new MoBContext();
 }
 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;
            }
        }