title: Error in await _context: "cannot reference a type through an expression"
body: <p>Based on <a href="https://stackoverflow.com/questions/60018401/ilist-returning-count-0-on-posting-back-updated-checkboxes">this answer</a></p>
  
  <p>I've edited my .cs like this:</p>
  
  <pre><code>private readonly GroupAccessDetailsModel _context;
  public GroupAccessDetailsModel(GroupAccessDetailsModel context)
  {
      _context = context;
  }
  [BindProperty]
  public IList&lt;OutputAccessRights&gt; UsersAccessRights { get; set; }
  
  public async Task&lt;IActionResult&gt; OnGetAsync()
  {
      UsersAccessRights = await _context.OutputAccessRights.ToListAsync();
  
      if (UsersAccessRights == null)
      {
          return NotFound();
      }
      return Page();
  }
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code> public class OutputAccessRights
  {
      public int Id { get; set; }
      public bool ChkUserAccessRights { get; set; }
      public string SubMenuDescription { get; set; }
      public string MainMenuDescription { get; set; }
      public bool ChkAddRight { get; set; }
  }
  </code></pre>
  
  <p>But my problem is in await _context.<strong>OutputAccessRights</strong>.ToListAsync(). </p>
  
  <p>Error: <em>cannot reference a type through an expression</em>.</p>
  
  <p>I've tried replacing it with await _context.GroupAccessDetailsModel.OutputAccessRights.ToListAsync(); but it didn't work. Any idea how can I solve this problem? </p>