I had started a project with Model-First, with one existing base, now I need to change to code-first to change some specifics things in FK´s. So How I keep the classes and change to code-first? It´s even possible?
Assuming you have already generated your database from your model, you can use the "Reverse Engineer Code First" feature of Entity Framework Power Tools. This will generate both your POCO model classes and Fluent API mapping classes for you.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments