How do I update the first entity framework code from the database?

0

It turns out that I started to make a database model from code first entity framework and I added a table in the database with what I want to bring that change to code first. I know that I can create the class in code first and with the migration update it in the database but, I want to do it from the database to the code first model, which would be the command or the way to execute said execution.

    
asked by Pignal 11.04.2017 в 18:45
source

1 answer

0

You can use the wizard to create the mapping Code Fist from the table model of the db

Entity Framework Code First to an Existing Database

among the wizard options you would use Code First from database

Remember that the mapping you made in a custom way can be lost when you run the wizard

    
answered by 17.04.2017 / 06:47
source