4 ms·
I don't think you know it very well. You need to add the correct attributes to your class for form validation ( eg. Required / StringLength ) Then scaffold a
by NicoJuicy 5y ago
I don't think you know it very well.
You need to add the correct attributes to your class for form validation ( eg. Required / StringLength )
Then scaffold a MVC controller or an api controller ( It will add the class to your DbContext)
Then add-migration / update-database for your migration.
And it's done
- bayesian_horse 5y agoWhich leads us to the topic of documentation and on-boarding. And it's still a ton of more code to write, read and maintain.
- NicoJuicy 5y ago? No it's not. Autogenerated migration files that you don't need to touch and 1 class to describe the model + 1 auto inserted line in the DbContext