EF not creating new table when model is added RRS feed

  • Question

  • I am developing a Code First application.  When I go to add a new model, it does not add the new table.  

    I am not sure what needs to be done to force the updates.  I am working with EF 6.1.3.


    Monday, May 11, 2015 2:52 AM

All replies

  • Did you run migrations or a SQL script to add the table?

    Please mark as answer, if this was it. Visit my SQL Server Compact blog

    Monday, May 11, 2015 3:59 AM
  • Hello Bob F Johnston,

    >>When I go to add a new model, it does not add the new table.

    Maybe you mean an entity class, is it? If so, with the code first approach, as ErikEJ mentions, you need to use migrations to upgrade your database, if you do not find related information, please check this link below: Code First Migrations.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, May 12, 2015 2:35 AM