Re:Making life easier for newcomers to the .NET ecosystem
by bayesian_horse on Tuesday November 16, 2021 @01:43AM
(#29237612)
Which leads us to the topic of documentation and on-boarding. And it's still a ton of more code to write, read and maintain.
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