Scaffolding not working in Visual Studio 2022 .NET 6 Core

Viewed 223

I could not get the reflection type for this LoginViewModel:

 public class LoginViewModel
    {
        public string Email { get; set; }
        public string Password { get; set; }
    }

Scaffolding forced me to choose the context, but "LoginViewModel" is not listed in contexts:

This is the error I get:

How do I solve this?

1 Answers
Related