示例#1
0
        /// <summary>
        /// If disposing, calls dispose on the _context. Always nulls out the _context
        /// </summary>
        /// <param name="disposing"></param>
        protected virtual void Dispose(bool disposing)
        {
            if (disposing && _context != null)
            {
                _context.Dispose();
            }

            _disposed = true;
            _context  = null;
        }
示例#2
0
 public UserStore(AltaskDbContext context)
 {
     _context = context;
 }