Core 3. I have some login code where I first check for a user's existence with:
_context.Users.Any(user => user.Email.Equals(email));
This returns true. However, when I try to fetch the user with:
User user = await _context.Users.SingleAsync(user => user.Email.Equals(email));
I get user as null. What could be wrong with this? I have not used EF Core before.
Kindly assist
This is not related to core or ef... First check manualy in db, see the user really exist
Обсуждают сегодня