V
V
VanilaSpirit2020-08-06 11:39:37
ASP.NET
VanilaSpirit, 2020-08-06 11:39:37

ASP.NET why aren't model entries returned?

5f2bc13147d74909336636.jpeg

As you can see from the screenshot, the query returns zero records (the lowest variable partners = null), but at the same time they exist and are marked in local. What could be the problem? There is a client completely similar, but there returns 7 records.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2020-08-06
@vabka

Naturally, it will be null there, since the break point is triggered first, and then the Partners.ToList() method will be executed.
Take a step forward - then it will not be null, but an empty list, for example.
If an empty list confuses, then there is no data in the database, or a curved mapping is done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question