options.UseSqlServer returns Error in startup.cs

asp.net-core asp.net-core-mvc entity-framework-core

Popular Answer

It should seem as follows:

 services.AddDbContext<ApplicationDbContext>(options =>
            options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
1
7/25/2018 4:16:45 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