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

  • Home
  • SEARCH
  • 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 7831997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:58:54+00:00 2026-06-02T11:58:54+00:00

I am investigating EF Codefirst. While I like the Code/SB sync benefit, it does

  • 0

I am investigating EF Codefirst. While I like the Code/SB sync benefit, it does trouble me that the tables are dropped and data lost. In reality my dev DB could have quite a bit of test data. Is there not an alternative to this “table dropping” like the use of “Alter Table” etc.

It puts me off EF Code First.

Thanks,

Ed

  • 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-06-02T11:58:56+00:00Added an answer on June 2, 2026 at 11:58 am

    Apparently you didn’t do much investigating. Apart from the fact there are lots of ways to do code first without dropping tables (such as manually making the changes), Code First Migrations has been out for quite some time.

    http://blogs.msdn.com/b/adonet/archive/2012/02/09/ef-4-3-code-based-migrations-walkthrough.aspx

    http://blogs.msdn.com/b/adonet/archive/2012/02/09/ef-4-3-automatic-migrations-walkthrough.aspx

    It’s not like this is any different from any other way of doing things. You have to manually change your database when using Database first as well, and you have to drop your tables to regenerate your database in Model First.

    This is not anything specific or strange about code first. It’s the way it works for every orm technology.

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

Sidebar

Related Questions

While investigating a crash, I came across the following code snippet and immediately recognized
While investigating memory issues in our application, it turns out that if the application
I am investigating using JPA for my Data Access code. I am trying to
Been investigating for a while now and keep hitting a brick wall. I am
While investigating an issue with application I'm working on, I've came across one behavior
I've been investigating this issue that only seems to get worse the more I
I have been investigating transactions and it appears that they take care of themselves
I'm investigating a performance issue with my application written in Delphi 2010. Does Delphi
I was investigating the slowness of proxy initialization (PrivateInvoke method) and found that many
I'm currently investigating a way to develop a website that will allow me to

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.