none
ASP.NET Core Mvc Template error RRS feed

  • Question

  • The code generate using Asp.net core MVC template has UseSqlServer error highlighted. Why I am getting this error on a new project, if the code is generated by the template. I was expecting the template to taking care of all necessary references and using directives from the start. The error occurs when I opted to using individual account authentication. When I left click to try and pulling any missing package or using directive I am presented with no options. Not sure how to best resolve this. Here is the code generated-       services.AddDbContext<ApplicationDbContext>(options =>
                    options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
    • Moved by CoolDadTx Sunday, July 23, 2017 8:45 PM ASP.NET related
    Sunday, July 23, 2017 1:03 PM

All replies