Automatic Migration Issue - Entity Framework

Cristina Albu 6 Reputation points
2019-11-13T14:50:39.45+00:00

Hey, I have an issue with an Automatic migration and I could really use your guidance on this.

I have worked with someone else on a project which consists of a solution + a nu-get solution, installed in the main solution.

My colleague created some code in the Nu-get solution which generated an Automatic migration when the solution and Nu-get were deployed on other servers, but when I pulled the changes on my local and built and reloaded the application, I didn't have this Automatic migration applied in my Migration History table.

I have worked on the main solution afterwards, to do some modifications and I ALSO generated a Code First Migration, with some new columns.

When the code was deployed ( main solution with the nu-get solution installed in it) on another server, the Automatic migration didn't get applied, but the Code First migration did. Right now, the functionality from the nu-get solution doesn't work.

Do you have any thoughts why the Automatic migration wouldn't get applied on my local or on the server?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,577 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Ibrahim Kais Ibrahim Hassan 1 Reputation point
    2019-11-17T19:02:20.547+00:00

    you should check that you enabled the automatic migration in the configuration class

    please find this link to tell you more details


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.