MR.ABC
MR.ABC

Reputation: 4862

Add columns/properties to existing Entity Framework Model

I'm building an application that will be exposed to the public. So the database will be filled with data. I'm not sure how to extend the model afterwards. Locally after any changes of the model the database get's recreated. How can add properties to the existing model, without recreate the entire database ?

Upvotes: 0

Views: 661

Answers (1)

Kishore Kumar
Kishore Kumar

Reputation: 12874

Take a look at EntityFramework CodeFirst Migration, for modifying your schema.

MSDN Link for Migrations

Upvotes: 1

Related Questions