Reputation: 55
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);
}
Upvotes: 2
Views: 2763
Reputation: 41799
It was temporarily named EntityOptionsBuilder, in beta 6 it is back to DbContextOptionsBuilder again
Upvotes: 3