The term “Scaffolding” is used by many software technologies to mean “quickly generating a basic outline of your software that you can then edit and customise”. NET MVC is greatly beneficial in several scenarios: It’s currently at a beta level so it is expected to work but if you push it in funny ways you might get odd results.
Please let me know if you discover issues – I’m sure there’ll be some – so we can tidy it up and make it more robust.
This extra work involves updating the schema of your database. The first we will consider is Code First Migrations. With database first, we adjust the database schema manually, then write C# models to reflect that change.
I run 'mysqladmin variables | grep socket' from the command line and find out that my socket file is located at '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock' because, of course, I'm running XAMPP for my My SQL server. It seemingly faithfully describes the tables and fields of my DB.
So I create a '/db/migrate' folder, copy my 'schema.rb' file into it, rename it '001_create_database.rb' and wrap the schema as suggested by the thread: (Note the updated class name.) All good now.
If you try to publish this application, you will see an Tip There is an alternative here called Database First Models.
In this alternative, you create the database first then create the models to match.