I’m an MVC / EF newb.
I’ve got a few different tables I want in my database: say lemons, sugar, and water.
Should I create three separate models: lemons, sugar, and water or make one big model that defines three different classes (with three separate DBContext classes?) and then scaffold each model?
Right now I’m making separate models, but it looks like I have to end up making three separate databases which seems overkill.
The movie example only has one table, so it doesn’t answer my question very well.
You could have 3 model classes (one for each of your entities)
and create one DbContext for them:
This way, you’ll be using EF Code First with 3 model classes and one database
Hope this helps 🙂