'SchoolContext.OnConfiguring(DbContextOptionsBuilder)': no suitable method found to override

asp.net-core c# entity-framework-core

Question

I am working with ASP.NET core 2.0 console application

I am on entity framework core 2.0 and I am having error

'SchoolContext.OnConfiguring(DbContextOptionsBuilder)': no suitable method found to override

And

I can't find my project.json file

there's lot of solution to work out with project.json file

but i don't see it anywhere

ERROR MSG

I am stuck for 3 hours now

there's a link I have been following

http://www.entityframeworktutorial.net/efcore/entity-framework-core-console-application.aspx

1
0
6/3/2018 9:02:03 AM

Popular Answer

To override OnModelCreating and OnConfiguring methods, you need to have installed a NuGet package called Microsoft.EntityFrameworkCore.SqlServer.

You can do it when you right click on Solution -> NuGet Packages -> Install -> Microsoft.EntityFrameworkCore.SqlServer.

1
10/25/2018 9:01:16 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow