Ceci Benitez Asked: 2020-07-25 11:02:07 +0800 CST 2020-07-25 11:02:07 +0800 CST 2020-07-25 11:02:07 +0800 CST ApplicationUser model does not appear in the ModelClass list 772 When I try to add a scafolding with Entity Framework the class that is in .Modelsdoes not appear, it is called ApplicationUserand it is not in the list, how do I load it? List: visual-studio-2017 2 Answers Voted JuanK 2020-10-04T09:36:42+08:002020-10-04T09:36:42+08:00 The reason 3 most common reasons for a model not to be listed you have not compiled your solution after creating the model you have not put the model in the indicated folder, the scafolding is oriented by conventions the model, the class is not marked as public Best Answer JoseCarlosVP 2020-10-05T19:54:00+08:002020-10-05T19:54:00+08:00 First you must go to the folder where the project is and there you open the powershell so you can run the following code. dotnet aspnet-codegenerator controller -name UsuariosController -m ApplicationUser -dc ApplicationDbContext --relativeFolderPath Controllers --useDefaultLayout --referenceScriptLibraries Note: The project must be closed in Visual Studio. and you will get the User controller and its views
The reason 3 most common reasons for a model not to be listed
First you must go to the folder where the project is and there you open the powershell
so you can run the following code.
Note: The project must be closed in Visual Studio.
and you will get the User controller and its views