Let's start by creating a web MVC project with Visual Studio 2015.
Now we add a database with a table for books, for that we use the right mouse button in the Data Connections link over the Server Explorer window and then choose Add Connection...
When the database is ready use the right mouse button again, like so.
These are the fields for the table.
After the executation of the script you can check the new table in the database.
When the table is finally created let's go over the Solution Explorer and use the right mouse button to create a new item of type ADO .Net Entity Data Model. You should right click the folder of the models so VS saves the data model in that folder.
Next, we must compile (build) our project, so that the model we created can be used.
In the window that pops click on MVC 5 controller with views, using Entity Framework.
In the end of this process we get a controller with code and views ready to go.