Skip to content

Beta 7 - migrations from multiple dbcontexts not work #3098

@GregorBiswanger

Description

@GregorBiswanger

Hello,
I have one DbContext in regular .NET Assembly (.NET 4.5.1) and one ApplicationDbContext (MVC 6 - Beta 7). On dnx ef migrations add NewDatabase command get only the ApplicationDbContext.

My Startup.cs code is:

services.AddEntityFramework()
    .AddSqlServer()
    .AddDbContext<ApplicationDbContext>(options =>
    {
        options.UseSqlServer(Configuration["Data:DefaultConnection:ConnectionString"]);
    })
    .AddDbContext<DepositContext>(options =>
    {
        options.UseSqlServer(Configuration["Data:DefaultConnection:ConnectionString"]);
    });

Have anyone a idea for this issue?

Thanks,
Gregor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions