Click here to Skip to main content
15,940,430 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,
I was developed project using c# Entity Framework Code First,But if it has database changes need to update customer database using source code.
Is it possible to Entity Framework Code First Migration attache with exe file?

What I have tried:

update database
Updated 10-Oct-16 23:53pm

1 solution


You can update the database if the model changes, using a feature called Code First Migrations.

Follow this tutorials:
Entity Framework Automatic Code First Migrations[^]
Entity Framework Code First Migrations[^]
Code-based Migration[^]

José Amílcar Casimiro
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900