コード例 #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();
 }
コード例 #4
0
 public CollaborationSpaceRepository()
 {
     _context = new MoBContext();
 }
コード例 #5
0
        private bool _disposedValue; // To detect redundant calls

        #endregion Fields

        #region Constructors

        public CollaborationSpaceRepository(IMoBContext context)
        {
            if (context != null)
                _context = context;
        }
コード例 #6
0
        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;
            }
        }