Change scaffold C#generated controllers

Asked

Viewed 29 times

0

Good people, I was studying about Entity Framework and saw that there is the scaffolding tool that generates a complete CRUD with controllers and views.

My doubt is that if I can change the logic of the freely created actions or structures or this is not recommended?

Ps: I don’t mean to change all created actions/structures, but punctual things like for example when inserting a data into a table, the action should create a record in another table of who added that data and when.

thanks in advance for the help!

  • 1

    I’d say you must and must...

1 answer

1


Yes, you can and you must. Each application has its particularities, what the framework generates is very generic, adapt it to your needs.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.