Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6179895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:45:01+00:00 2026-05-24T00:45:01+00:00

I am a newbie to the Entity Framework concept. I recently implemented a project

  • 0

I am a newbie to the Entity Framework concept. I recently implemented a project using Entity Framework 4.1 Code First Approach. Now that I am working on a fix for some bugs, the require me to add more attributes to the model (resulting in changes to DDL), I am restricted with not entrusting Entity Framework to recreate the database for me. If I use the Entity Framework to recreate the DB, I will loose my existing data. What are my options? Can I create a T-SQL Script for just the DDL changes and deploy them? How can keep a track of these changes over time? Help!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:45:02+00:00Added an answer on May 24, 2026 at 12:45 am

    Are you using source control? If yes that is the answer for your last question.

    • Use source control and label/tag each released version so you can easily get the code used for that version and use it to create database used for that version.
    • Then use the current version to create database as well (you need to change connection string in one version so that databases do not override).
    • Once you have to databases deployed on your development database server you can use some tool to create basis of migration script. Red Gate SQL Compare or VS Studio Database tools (VS 2010 Premium or Ultimate) offers such functionality. These tools are able to compare databases’ schemas and create upgrade script from the old schema to the new schema.
    • Once you have upgrade script you need to test that script – the best is to test it on the backup of production database. The target of this testing is validation of upgraded database and verification that it works on database full of data. If not you must modify script and perhaps add some manual migration tasks.

    Database power pack mentioned in comment does exactly this (it is dependent on VS Studio Database tools) but it does it only if you are using EDMX file (model first).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I plan to write my first application using Entity Framework + Repository + Unit
I am a newbie about entity framework and linq. My query is like that
I'm newbie with .NET Entity Framework 4.0 I'm using VS2010 and I created the
I'm a total newbie at Entity Framework and ASP.Net MVC, having learned mostly from
I am a pretty much a newbie to Entity Framework (specifically version 4) and
I am an Entity Framework newbie and am wondering if I am able to
We are using ado.net entity framework 4.0 for our database layer and I am
Newbie alert! OK, I have a working central Mercurial repository that I've been working
I'm a newbie to Entity Framework, so I'd like to try something simple to
I am working on a solution that aims at solving problems that newbie programmers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.