OnConfiguring has gone missing

entity-framework-core

Question

I'm attempting to update to EF7 beta5.

The compiler tells me that OnConfiguring is no longer a suitable method to override. It also tells me that it can no longer find DbContextOptions or DbContextOptionsBuilder.

Seems like i'm missing something here. Can anyone enlighten me as to what this might be?

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        string cnString = Config.Get("Data:" + _cnNm + ":ConnectionString");

        optionsBuilder.UseSqlServer(cnString);

    }

Accepted Answer

It was temporarily named EntityOptionsBuilder, in beta 6 it is back to DbContextOptionsBuilder again




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why