Last post Dec 24, 2019 06:42 PM by Prathamesh Shende
Dec 24, 2019 10:15 AM|Prathamesh Shende|LINK
I am getting error "
I applied breakpoint on code then i found this error. on browser the page is loading and nothing is returning.
I am using asp.net core 3.1 version
this is my code
public JsonResult GetServiceChallanNo()
var result = _context.StockIn.Where(a => a.ID == 29);
Dec 24, 2019 01:13 PM|mgebhard|LINK
There are several issue with your code. The code is returning a LINQ expression not an actual type.
Below is a know working example that using the adventure works database,
public ActionResult Index()
var results = DbContext.Customers.Where(c => c.CustomerID == 1).ToList();
The community cannot verify your query returns records and we cannot see the client code which is where the results return.
Dec 24, 2019 06:42 PM|Prathamesh Shende|LINK
I remove the lazyloading from startup.cs and it working fine