I’m trying to generate my model from the database as usual, creating the model from the database using entity framework. I go through the wizard, add the connection string, test it, I select the tables I want to import, everything as usual.
However the model is not created, I tried to update, re-create, everything that has come to my mind, with no success. Do you know what might be happening?
EDIT:
Btw, in the Designer.cs nothing is created as well, so no model, but with a two table database.
I don’t know if the problem might be that I have too many columns on a table? ha!
After wondering why the model was not being created from the database without showing any error, the problem was that my tables didn’t have any primary key, and in conclusion the model cannot create entities without primary keys.
I’m not bothered by this, but I think an error or warning would have been more useful than an info entry.
Hope this will help another in the future.