コード例 #1
0
        public Context GetContext()
        {
            if(_context == null)
            {
                _context = new Context();
            }

            return _context;
        }
コード例 #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }