Click here to Skip to main content
15,072,776 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?
thanks.

What I have tried:

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

1 solution

Hello,

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[^]

Cheers,
José Amílcar Casimiro
   

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