Search code examples
asp.net-mvcasp.net-mvc-scaffolding

How to change project and folder where MvcScaffolding generates controllers, views and repositories


Is there any possibilities to change default projects and folders where MvcScaffolding generates repositories, views and controllers?


Solution

  • You can if you're triggering scaffolding from Command Window

    For example:

    > Scaffold DbContext <modelType> <dbContextName> -Folder /Models/Entities
    

    More info http://blog.stevensanderson.com/2011/01/13/mvcscaffolding-standard-usage/