A
A
anonymous2017-11-13 18:34:32
.NET
anonymous, 2017-11-13 18:34:32

Can't do .net ef database migration, what's the reason?

I changed the code on the sharp, added one column that was supposed to be added to the table, made a migration, and writes to me

No migrations were applied. The database is already up to date.

What could be the problem?
I use entity framework

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
anonymouss, 2017-11-16
@anonymouss

The problem was that half of the solution was on .net core and half on .no
added a crutch from stackoverflow and it worked, it’s not clear why)) probably a bug in .net core

M
MrDywar Pichugin, 2017-11-13
@Dywar

In the question, write which approach you are using. Database first, Model first, Code first.
A little from the project, how is it that you have, what exactly was created, where "it" is and how it looks.

R
Roman, 2017-11-14
@yarosroman

did you add the migration itself? https://metanit.com/sharp/entityframework/3.12.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question