I am trying to populate a GridView
using Entity Frameworkm but every time I am getting the following error:
\"Property accessor \'LoanPro
If you're using ASP.NET Core and wonder why you get this message in one of your async controller methods, make sure you return a Task
rather than void
- ASP.NET Core disposes injected contexts.
(I'm posting this answer as this question is high in the search results to that exception message and it's a subtle issue - maybe it's useful to people who Google for it.)