Skip to content

Commands: Discover contexts registered in the service provider - #3327

Merged
bricelam merged 1 commit into
dotnet:devfrom
bricelam:host
Oct 5, 2015
Merged

bricelam merged 1 commit into
dotnet:devfrom
bricelam:host

Conversation

@bricelam

@bricelam bricelam commented Oct 5, 2015

Copy link
Copy Markdown
Contributor

Fixes #2293

With this, it's now possible to have your Startup, DbContext, and Migration classes in three separate projects. But not on DNX yet because it's blocked by #2679.

Also stops throwing on DNX if Startup isn't found (fixes #2867)

Verification: Manual bashing 🔨

@ajcvickers

Copy link
Copy Markdown
Contributor

:shipit:

Fixes #2293

Also stops throwing on DNX if `Startup` isn't found (fixes #2867)
@bricelam
bricelam merged commit 4b4547d into dotnet:dev Oct 5, 2015
@bricelam
bricelam deleted the host branch October 5, 2015 20:23
@francischeung

Copy link
Copy Markdown

Hi Brice,
What is (or will be) the DNX command to add a migration if Startup and DbContext are in separate projects?
Thanks!

@bricelam

bricelam commented Oct 6, 2015

Copy link
Copy Markdown
Contributor Author

As stated above, we need to do #2679 first, but the command will be:

cd src\MyMigrationsProject
dnx ef migrations add MyMigration --startupProject MyStartupProject

Note, the DbContext could be in a separate, third project so long as it's referenced by MyStartupProject and MyMigrationsProject.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants