How to use Add-Migration if the project contains multiple folders
问题 I would like to Add-Migration with my DbContext, but I get Error: The term 'add-migration' is not recognized as the name of a cmdlet, function, script file, or operable program. Is the problem related with folder structure? The customized User.cs, Role.cs and the Startup.cs are in different folders. The Entity Framework is included in the DbContext project file. How do I fix this? 回答1: Is the problem related with folder structure? This issue is not about the folder structure .It's about the