locked
Can I delete files created with scaffolding? RRS feed

  • Question

  • User1409124252 posted

    My data models may changed greatly on my project, so I was wondering if I want to remove a fully scaffolded model, view & controller, can I just delete the files before initializing any data?

    Thursday, September 26, 2013 2:17 PM

Answers

  • User1751268424 posted

    Hi,

    Yes, you can delete the controller, and all related views (view folder). When you create a controller and/or views it does not do any other thing to your MVC project.

    Have fun

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 26, 2013 6:00 PM

All replies

  • User1929428035 posted

    Is this a Dynamic Data project or a pure MVC PROJECT.

    Thursday, September 26, 2013 2:31 PM
  • User1409124252 posted

    It is an MVC 4 Application.  I am creating an employee orientation site, where the orientation content is customized for each employee depending on their job.  Each employee will "step" through the content.

    Content will consist of modules (Benefits, Payroll, Safety, etc.), each containing PowerPoint slides with audio, videos, quizzes, and forms.   There will be a progress bar marking orientation progress and completion.  Also an admin area to create new content, and monitor employee progress and provide help.

    Thursday, September 26, 2013 3:03 PM
  • User1751268424 posted

    Hi,

    Yes, you can delete the controller, and all related views (view folder). When you create a controller and/or views it does not do any other thing to your MVC project.

    Have fun

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 26, 2013 6:00 PM
  • User1409124252 posted

    Thanks!  I thought so, but wanted to be sure before I broke something.

    Friday, September 27, 2013 7:57 AM