Add migration failed when DbContext in sperate project


0 votes
asked Mar 15, 2016 by Inserting_Us (330 points)
I have project with different layers: web, services, model, data each one has different project in same solution.

5 Answers

0 votes
answered Mar 28, 2016 by dauphinai (1,400 points)
It was helpful for me to do Multiple DbContext in to a single database. That linked article discusses how to create migrations for a single context.

File is successfully getting saved using Code First Migration in Multiple DbContext - CodeProject but unzip is not working
commented Mar 28, 2016 by na8642 (470 points)
The bloging module might extend it like this:modelBuilder
commented Mar 29, 2016 by Vff_867_chap (850 points)
Changing this will change where output from a build goes
0 votes
answered Apr 7, 2016 by kubinski (920 points)

There is no concept of sharing a migration class between multiple contexts. A different context requires a different set of migrations.
Add Db Context() , but the context is not listed when you run dnx.
0 votes
answered Apr 8, 2016 by Viggiani (1,590 points)
Amethyst supports this feature. You can have a look at Getting started with Entity Framework Code First Migrations to get an idea
commented Apr 10, 2016 by Ubj1797 (310 points)
This also works fine
–1 vote
answered Apr 28, 2016 by Ybb_890 (240 points)
Follow this instructions from standard eclipse docs. Check this https://github.com/aspnet/EntityFramework/issues/2256 for more detailed information
commented Apr 29, 2016 by Gibb8466 (240 points)
I was searching something like that and I found this answer
commented Apr 29, 2016 by Qry_1497 (790 points)
Make sure you have this function in your application delegate. If you are just installing someone else package you should use install
+1 vote
answered May 13, 2016 by UbjOnce (170 points)
Refer EF Migrations Command Reference | Passion for Coding for more info
So it has to look like

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...