Now we’ll write our model classes and use EF “code first” to
map them to our Northwind database. Below is all of the code we need to
write to enable this – no other code is required:
Below are some details about what all this code does and how
it works: